How can I compare two deferred expressions? #10167
-
My application uses a limited set of ibis expressions that users can define using yaml which is parsed into deferred's. I'm trying to test as follows: def test_datestring():
yaml_predicate = """
and:
- column: tpep_pickup_datetime
op: ">="
value: "20120101"
- column: tpep_pickup_datetime
op: "<="
value: "20120110"
"""
actual = parse_yaml_predicate(yaml_predicate).compile()
expected = ((_["tpep_pickup_datetime"] >= "20120101") & (_["tpep_pickup_datetime"] <= "20120110")).compile()
assert repr(actual) == repr(expected) however, I'm hitting the following issue:
I've also tried using
I'm using ibis-framework==9.0.0 Any ideas? |
Beta Was this translation helpful? Give feedback.
Answered by
lostmygithubaccount
Sep 18, 2024
Replies: 1 comment
-
I think you're looking for |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cpcloud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think you're looking for
exprA.equals(exprB)
? see #8754 (comment)