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

RexSimplify changes the order of IS NOT NULL in And RexNode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.20.0
    • Fix Version/s: None
    • Component/s: core

      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

              • Assignee:
                Chunwei Lei Chunwei Lei
                Reporter:
                pzw2018 pengzhiwei
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

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