Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6589

Push transitive closure generated predicates past aggregates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13.0
    • 1.15.0
    • None

    Description

      Here is a sample query that may benefit from this optimization:

      SELECT * FROM T1 WHERE a1 = 5 AND a1 IN (SELECT a2 FROM T2); 

      Here the transitive predicate a2 = 5 would be pushed past the aggregate due to this optimization.

      Attachments

        Issue Links

          Activity

            People

              gparai Gautam Parai
              gparai Gautam Parai
              Vitalii Diravka Vitalii Diravka
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: