rubenada opened a new pull request #1322: [CALCITE-3198] ReduceExpressionsRule.FILTER_INSTANCE does not reduce 'NOT(x=a AND x=b)' URL: https://github.com/apache/calcite/pull/1322 Jira ticket: [CALCITE-3198](https://issues.apache.org/jira/browse/CALCITE-3198) RexSimplify is able to simplify expressions like: `x = a AND x = b => FALSE` However, it is not able to simplify the negation of that expression: ``` NOT(x = a AND x = b) => (x <> a OR x <> b) => TRUE (if unknownas.TRUE or x's type is not nullable) => x IS NOT NULL (otherwise) ``` The current change aims to carry out this simplification.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
