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

In RelBuilder.project_, do not unwrap SARGs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.30.0
    • 1.31.0
    • core

    Description

      The RelBuilder.project_ method forcefully unwraps SARG expressions. This way, we may lose SARG-related optimization opportunities and even get an infinite loop when some rules are applied heuristically. For example, the ProjectReduceExpressionsRule may simplify an expression to a SARG which would be unwrapped back to the original form in the RelBuilder, leading to an infinite execution of the rule.

      The aim of this ticket is to remove the unconditional SARG unwrap from the RelBuilder.

      Attachments

        Issue Links

          Activity

            People

              vozerov Vladimir Ozerov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              3 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