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

Julian Hyde commented on CALCITE-1638:
--------------------------------------

As it happens I've already done this, as part of 
https://github.com/julianhyde/calcite/commit/c8e266521328a115e2075aea335ae655c099f8a8.
 The correct rewrite IMHO is "$x = $x" → "$x is not null". (And the latter 
will get simplified to true if x is not null.) I'll commit it as part of the 
fix for CALCITE-1494.

> Simplify $x=$x to true
> ----------------------
>
>                 Key: CALCITE-1638
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1638
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: Jess Balint
>            Assignee: Julian Hyde
>            Priority: Minor
>
> {{=}} is reflexive and we can simplify it to true if the operands are equal



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to