Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
Impala 4.3.0, Impala 4.4.0
-
None
-
ghx-label-6
Description
The comments in the SimplifyConditionalsRule class mention that 'id = 0 OR false' would be rewritten to 'id = 0', but in reality, it does not perform this rewrite as expected. After executing such SQL, we can see in the text plan that:
Analyzed query: SELECT * FROM functional.alltypestiny WHERE FALSE OR id = CAST(0 AS INT)
The issue appears to be that the CompoundPredicate generated by NormalizeExprsRule was not analyzed, causing the SimplifyConditionalsRule to skip the rewrite.
Attachments
Attachments
Issue Links
- is caused by
-
IMPALA-12164 The query fails with "IllegalStateException: Illegal reference to non-materialized slot: tid=x sid=x"
- Resolved
- is related to
-
IMPALA-13302 Some ExprRewriteRule results are not analyzed, leading to unmaterialized slots from reAnalyze
- Resolved