Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15203

Calcite. Extract Filter and Project related rules to separate HEP phase

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • sql

    Description

      Currently the query like follow requires too mush time to optimise (> 5 minutes on my laptop):

      select * from t1 inner join t2 on t1.id = t2.id where t1.val1 > 0 or t1.val2 > 10
      

      The reason is that every step of push down of the filter creates one more valid plan, that in conjunction with OrToUnion rule and all those Join's traits propagation significally boosts the search space.

      We could take an advantage of heuristic planner here to push down filters as close to the leaf as possible, whereas pruning all alternative plans.

      Attachments

        Issue Links

          Activity

            People

              korlov Konstantin Orlov
              korlov Konstantin Orlov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 2.5h
                  2.5h