[
https://issues.apache.org/jira/browse/CALCITE-4525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839743#comment-17839743
]
Jasmin Trada commented on CALCITE-4525:
---------------------------------------
This requires an improvement in
org.apache.calcite.rel.metadata.RelMdPredicates.getPredicates(Project project,
RelMetadataQuery mq).
We are mapping projected columns to input fields but we are storing it into a
set and that's why only the last column actually gets mapped.
> Pull up predicate will lost some predicates when project contains same
> RexInputRef.
> ------------------------------------------------------------------------------------
>
> Key: CALCITE-4525
> URL: https://issues.apache.org/jira/browse/CALCITE-4525
> Project: Calcite
> Issue Type: Improvement
> Reporter: Ziwei Liu
> Assignee: Ziwei Liu
> Priority: Major
>
> If project like this a=$0, b=$0
> Pull up predicate is $0='a'
> when pull up through project, predicate will only contain b='a'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)