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

Vladimir Sitnikov commented on CALCITE-2556:
--------------------------------------------

{quote}Where does the responsibility stop?{quote}
What do you mean by "stop"?
For instance, {{RexSimplify}} will hardly be able to fold "dynamic params" 
and/or "inputs".
On the other hand, something like {{RelOptRule}} could identify that a given 
"dynamic param" is a **runtime** constant, so it could use that extra info to 
do more folding.

{{ReduceExpressionsRule}} uses {{RexSimplify}}.
That is basically the same code.


> RexSimplify: not(trueLiteral) could be simplified to false
> ----------------------------------------------------------
>
>                 Key: CALCITE-2556
>                 URL: https://issues.apache.org/jira/browse/CALCITE-2556
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.17.0
>            Reporter: Vladimir Sitnikov
>            Assignee: Julian Hyde
>            Priority: Major
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to