Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.34.0
Description
The following expressions which contain reverse order comparison are always true:
1 > x or 1 <= x or x is null 1 < x or 1 >= x or x is null 1 > x or 0 < x or x is null
But currently these expressions are not fully simplified to TRUE, the current simplified results are SEARCH operator.
The root cause is that RexSimplify doesn't identify these cases and makes targeted simplification.
It would be nice if RexSimplify.simplifyOr handled these cases.
Attachments
Issue Links
- relates to
-
CALCITE-4159 RexSimplify should simplify more always true OR expressions
- Closed
-
CALCITE-5798 Improve simplification of '(x < y) IS NOT TRUE' when x and y are not nullable
- Closed
- links to