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

Enhance RelFieldTrimmer to trim LogicalCorrelate nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.39.0
    • None

    Description

      Could enable the removal of irrelevant expressions below `LogcialCorrelate` expressions:

      In the following plan $f8=[+($0, $0)] is completely unused; so it should be removed:

      LogicalAggregate(group=[{1}], agg#0=[MAX($0)])
        LogicalCorrelate(correlation=[$cor0], joinType=[left], requiredColumns=[{7}])
          LogicalProject(EMPNO=[$0], ENAME=[$1], JOB=[$2], ..., DEPTNO=[$7], $f8=[+($0, $0)])
            LogicalTableScan(table=[[scott, EMP]])
          LogicalFilter(condition=[=($0, +(10, $cor0.DEPTNO))])
            LogicalTableScan(table=[[scott, DEPT]])
      

      Attachments

        Issue Links

          Activity

            People

              kgyrtkirk Zoltan Haindrich
              kgyrtkirk Zoltan Haindrich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: