[
https://issues.apache.org/jira/browse/CALCITE-6649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17893869#comment-17893869
]
Julian Hyde commented on CALCITE-6649:
--------------------------------------
I am worried that invoking simplify each time metadata is requested will damage
performance. Why not simplify the expressions before creating the Project?
> 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)