[ 
https://issues.apache.org/jira/browse/CALCITE-7348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18049051#comment-18049051
 ] 

xiong duan commented on CALCITE-7348:
-------------------------------------

Fixed in 
[45e41e8|https://github.com/apache/calcite/commit/45e41e8db6f7da147b9981aba856243c6c4736c4].
 Thanks for the review [~mbudiu] .

> Remove redundant extraction correlation variables when Trim Project Fields
> --------------------------------------------------------------------------
>
>                 Key: CALCITE-7348
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7348
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: xiong duan
>            Assignee: xiong duan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> In RelFieldTrimmer:
> {code:java}
> trimFields( Project project, ImmutableBitSet fieldsUsed, 
> Set<RelDataTypeField> extraFields){code}
> The Project RelNode already has the corresponding correlation variables, so 
> there is no need to extract them again from the Project.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to