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

Simplification may weaken OR conditions containing inequalities

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.21.0
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            kgyrtkirk Zoltan Haindrich
            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

                Slack

                  Issue deployment