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

FilterJoinRule misses opportunity to push filter to semijoin input

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.28.0
    • core

    Description

      Consider the following plan:

      LogicalProject(DNAME=[$1])
        LogicalJoin(condition=[AND(=($0, $10), =($8, 100))], joinType=[semi])
          LogicalTableScan(table=[[scott, DEPT]])
          LogicalTableScan(table=[[scott, EMP]])
      

      The second conjunct only refers to columns from the right input, thus it could be pushed to the right input. However, FilterJoinRule misses this opportunity.

      Attachments

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              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 - 3.5h
                  3.5h