Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiling an expression involving an equality of two isnull statements gives unexpected SQL #1307
The following code
whereas I would have expected something like
which isn't logically the same as the first.
Can you write down how you think the operands associate in the first case?
These are logically equivalent according to the way the parser is written down here: https://github.com/cloudera/Impala/blob/1bfb4cc5277c278459905f5b986f3604d444e669/fe/src/main/cup/sql-parser.cup#L2994
Hm, the postgres parser behaves differently here. It parses
I might be misreading the impala parser. Let me squint at it some more.