mirror of
https://github.com/apache/impala.git
synced 2026-01-08 12:02:54 -05:00
This commit fixes the issue where queries with outerjoins and case expressions in predicates can fail with an AnalysisException. This is due to the method isTrueWithNullSlots() not preserving the return types of sub-expressions during substitution with null literals and the resulting predicate can fail to analyze even though the original predicate succeeds. The fix is to preserve the type of each slot in the predicate that we subsitute with the null literal. Change-Id: I8cd827b460620355db6fd518464418e701a724f1 Reviewed-on: http://gerrit.cloudera.org:8080/1656 Reviewed-by: Bharath Vissapragada <bharathv@cloudera.com> Tested-by: Internal Jenkins