Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
The new version of Calcite introduces the SEARCH rex call to express range conditions. However SEARCH}}s in conjunctions are currently not simplified. For example, {{AND(=($2, 2020), SEARCH($2, Sarg[2020, 2021])) is not simplified while it should be simplified to =($2, 2020).
This issue is caused by CALCITE-4364. We could currently extend the RexSimplify class to temporarily cover this issue.
Attachments
Issue Links
- is caused by
-
CALCITE-4364 Simplify "a IN (1, 2) AND a = 1" to "a = 1"
- Closed
- links to