MohamedAbdeen-rs opened a new pull request, #2443: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2443
`IS DISTINCT FROM` and `IS NOT DISTINCT FROM` parsed their right operand with parse_expr, which starts at the lowest precedence and therefore absorbed every operator that followed, including AND and OR. So `a IS DISTINCT FROM b AND c` parsed as `a IS DISTINCT FROM (b AND c)` instead of `(a IS DISTINCT FROM b) AND c`. PostgreSQL places IS below the comparison operators and above NOT, AND and OR. `Precedence::Is` already encodes exactly that. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
