Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.34.0
Description
Consider query like
select r_reason_desc from reason where r_reason_desc is not null and r_reason_desc like '%child%'
where "r_reason_desc" is a nullable field.
When RexSimplify::simplifyFilterPredicates is called on that conjunction of expressions, expression is not simplified, meaning that redundant "is not null" check is not removed.
In the same time, if query like
select r_reason_desc from reason where r_reason_desc is not null and r_reason_desc >= 'A'
is passed to optimizer, redundant "is not null" check is eliminated.
Attachments
Issue Links
- links to