[
https://issues.apache.org/jira/browse/CALCITE-3852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056969#comment-17056969
]
Zoltan Haindrich commented on CALCITE-3852:
-------------------------------------------
I always wanted to address this; but forgot :)
[~Chunwei Lei], yes in case we only handle non-nullable variables; I think we
should - and we probably could:
it might be interesting to watch out for null-s during the following case:
{code}
AND(x=9, OR(x!=9, c) )
{code}
I think an option could be to rewrite {{x!=9}} into something which is false in
case x is not null; but null otherwise; something like:
{code}
AND(null,x is null)
{code}
> RexSimplify doesn't simplify NOT EQUAL predicates
> -------------------------------------------------
>
> Key: CALCITE-3852
> URL: https://issues.apache.org/jira/browse/CALCITE-3852
> Project: Calcite
> Issue Type: Improvement
> Components: core
> Reporter: Chunwei Lei
> Assignee: Chunwei Lei
> Priority: Major
>
> Given x=9, RexSimplify does not simplify x != 9 to false.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)