[
https://issues.apache.org/jira/browse/CALCITE-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17896130#comment-17896130
]
xiong duan commented on CALCITE-6649:
-------------------------------------
As you said, this may be a very expensive change, and I will re-think this PR.
Why did the test cases here fail? According to optimization principles, this
can be properly optimized before pulling up the predicates.
> 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
> 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)