You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The IS keyword has lower precedence than the = symbol, but the expr nonterminal separates expressions into non-predicate and predicates and the first production in the predicate rule is expr IS NULL, which comes beforecomparison_predicate which is where the = token is matched.
Hm, the postgres parser behaves differently here. It parses a is null = b is null as ((a is null) = b) is null which makes sense since both operators are left associative and = is parsed before IS.
I might be misreading the impala parser. Let me squint at it some more.
Thanks, yes! I just tried out things with SQLite (the same SQL is created by ibis.sqlite.compile), and I think it parses things in the same order as postgres. So I'm guessing Impala is doing that too.
The following code
gives
whereas I would have expected something like
which isn't logically the same as the first.
The text was updated successfully, but these errors were encountered: