Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Resolved
-
1.29.0
-
None
Description
Now In Calcite:
((A IS NOT NULL OR B) AND A) can be simplify to (A)
When A is a node representing an input reference or field access.
For example:
(name is null or empid = 1) and name is nul -> name is null
But When A is a deterministic node, It can't reduce.
For example:
(replace(name,'e','a') is not null or replace(name,'a','c') is not null) and replace(name,'e','a') is not null
Can't be simplify to:
replace(name,'e','a') is not null
This issue originated in CALCITE-4910.
Attachments
Issue Links
- relates to
-
CALCITE-4910 Enhance simplify to reduce ((A OR D) AND (A OR C) AND A AND B) to (A AND B)
- Open
- links to