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

Simplification may weaken OR conditions containing inequalities

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.21.0
    • Component/s: None

      Description

      RexSimplify is transforming

      • OR(AND(>(999, $8), =($2, 'Franklin')), <(100, $8))
      • to OR(=($2, 'Franklin'), <(100, $8))

      the predicates are accumulated in simplifyOrTerms() but not discarded when iterating the second time

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kgyrtkirk Zoltan Haindrich
                Reporter:
                jbalint@gmail.com Jess Balint
              • Votes:
                0 Vote for this issue
                Watchers:
                8 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 - 50m
                  50m