Details
Description
= is reflexive and we can simplify it to true if the operands are equal
Issue Links
 is related to

CALCITE1668 Simplify "1 = 1" to true, "1 > 2" to false
 Closed
= is reflexive and we can simplify it to true if the operands are equal
CALCITE1668 Simplify "1 = 1" to true, "1 > 2" to false
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
CALCITE1494.