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

RexCall#isAlwaysTrue return incorrect result

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.17.0
    • Fix Version/s: 1.18.0
    • Component/s: core
    • Labels:
      None

      Description

      In the expression as followed:

      ((sal IS NULL) IS NOT NULL) IS FALSE
      

      The RexCall#isAlwaysTrue return true,however the correct answer is false.

      I find the reason is that there is a wrong logic in the  isAlwaysTrue,when getKind() is IS_NOT_FALSE、IS_FALSE and IS_NOT_FALSE :

      Can you have a check for me,thanks!

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                pzw2018 pengzhiwei
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: