You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@calcite.apache.org by "pengzhiwei (Jira)" <ji...@apache.org> on 2020/01/17 10:59:00 UTC

[jira] [Created] (CALCITE-3746) RexSimplify changes the order of IS NOT NULL in And RexNode

pengzhiwei created CALCITE-3746:
-----------------------------------

             Summary: RexSimplify changes the order of IS NOT NULL in And RexNode
                 Key: CALCITE-3746
                 URL: https://issues.apache.org/jira/browse/CALCITE-3746
             Project: Calcite
          Issue Type: Bug
          Components: core
    Affects Versions: 1.20.0
            Reporter: pengzhiwei
            Assignee: pengzhiwei


The RexSimplify changes the order of IS NOT NULL in And RexNode.The following expression 
{code:java}
a is not null and length(a) > 0{code}
is optimazted to 
{code:java}
length(a) > 0 and a is not null{code}
which will affect the logic short circuit for null-test.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)