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

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

Correction: The correct rewrite is "$x = $x" → "case when $x is not null 
then true else unknown end". But in most cases unknown and false have the same 
effect.

By the way. I don't have a firm ETA when that commit will be pushed to master. 
If you want to extract just the parts related to the "$x = $x" rewrite 
(including the tests I added) and commit separately, be my guest.

> 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