[
https://issues.apache.org/jira/browse/CALCITE-2556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16613653#comment-16613653
]
Vladimir Sitnikov commented on CALCITE-2556:
--------------------------------------------
{quote} All of the nodes in the expression are literals{quote}
Which expression do you mean?
{{not(trueLiteral)}}?
Do you really suggest to use Janino to simplify such an expression?
Volcano/Hep planners have enough variety coming from different join orders.
Why burden heavy lifting optimizer with such a trivial task as folding
{{not(true)}}?
On top of that, compiling {{not(true)}} via Janino would be inefficient, and it
would be bad for performance.
> 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)