[
https://issues.apache.org/jira/browse/CALCITE-6715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-6715.
----------------------------------
Fix Version/s: 1.39.0
Resolution: Fixed
Fixed in
https://github.com/apache/calcite/commit/20cc78e5f2424aed6a364afe4fb76e30cb96fef1
Thank you for the contribution, [~kgyrtkirk]
Thank the reviewers as well.
> Enhance RelFieldTrimmer to trim LogicalCorrelate nodes
> ------------------------------------------------------
>
> Key: CALCITE-6715
> URL: https://issues.apache.org/jira/browse/CALCITE-6715
> Project: Calcite
> Issue Type: Improvement
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.39.0
>
>
> 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:
> {code}
> 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]])
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)