Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.26.0
-
All environments
Description
In Calcite 1.26, the Rex expressions like follows:
(deptno = 20 OR deptno IS NULL) AND deptno = 10
Are simplified to:
deptno IS NULL
Instead of:
FALSE
Similarly, the following expression:
(deptno <> 20 OR deptno IS NULL) AND deptno = 10
Is simplified to:
deptno = 10 OR deptno IS NULL
Instead of:
deptno = 10
A diff with related unit tests (for RelBuilderTest.java) is in the attachment.
Attachments
Attachments
Issue Links
- is related to
-
CALCITE-4173 Add internal SEARCH operator and Sarg literal, replacing use of IN in RexCall
- Closed
- links to