Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3746

RexSimplify changes the order of IS NOT NULL in And RexNode

    XMLWordPrintableJSON

Details

    Description

      The RexSimplify changes the order of IS NOT NULL in And RexNode.The following expression 

      a is not null and length(a) > 0

      is optimazted to 

      length(a) > 0 and a is not null

      which will affect the logic short circuit for null-test.

      Attachments

        Issue Links

          Activity

            People

              Chunwei Lei Chunwei Lei
              pzw2018 pengzhiwei
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h