[
https://issues.apache.org/jira/browse/CALCITE-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17908233#comment-17908233
]
xiong duan commented on CALCITE-6649:
-------------------------------------
This issue has been fixed in CALCITE-6586. This PR adds some unit tests. Fixed
in
[7352a0c|https://github.com/apache/calcite/commit/7352a0cba06a46f99af0172bd4cc8611310bd0bc].
> Enhance RelMdPredicates pull up predicate from PROJECT
> ------------------------------------------------------
>
> Key: CALCITE-6649
> URL: https://issues.apache.org/jira/browse/CALCITE-6649
> Project: Calcite
> Issue Type: Bug
> Reporter: xiong duan
> Assignee: xiong duan
> Priority: Major
> Labels: pull-request-available
>
> {code:java}
> select comm = 2 from emp where comm = 2 can pull up =($0, true)
> select comm = 3 from emp where comm = 2 can pull up =($0, false)
> select comm = 2 from emp where comm = 2 and empno = 1 can pull up =($0, true)
> select comm = 2 empno = 1 and from emp where comm = 2 and empno = 1 can pull
> up =($0, true)
> Now the pull up predicate is nothing. {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)