mirror of
https://github.com/apache/impala.git
synced 2026-01-05 12:01:11 -05:00
The bug: In SingleNodePlanner.createInlineViewPlan() we need to wrap some exprs with TupleIsNullPredicates to preserve correctness if the inline view is outer joined. The bug was that we used to perform this wrapping on the rhs of the inline view's smap, and not the final output smap after those rhs exprs have been resolved against the physical output of the inline view's plan root. As a result, the TupleIsNullWrapping did not work correctly for deeply nested inline views with exprs that require wrapping at various nesting levels. The fix: Resolve the exprs against the physical output of the inline view's plan root before performing the TupleIsNullPredicate wrapping. Change-Id: I183bba6a36bf5e19a88687ed8c82977ae769ddf4 Reviewed-on: http://gerrit.cloudera.org:8080/2092 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Internal Jenkins
22 KiB
22 KiB