Xianqing He has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/16915


Change subject: IMPALA-9356: fix the predicate with empty tuple id invalid 
pushed down
......................................................................

IMPALA-9356: fix the predicate with empty tuple id invalid pushed down

Before the conjuncts with empty tuple id will migrate to the first
child of the joins. But for full outer join or right outer joins,
it may produce the wrong result.

E.g. if 'rand()=2' migrates to the first of full join will still
produce rows.

For full outer join and right outer join, the predicate with empty
tuple id at least migrate to left child, right child to make sure
the results are correct.

Tests:
  * Add planner tests

Change-Id: I50ae71ef31ff138adeeb57008a01eb02e7bb976f
---
M fe/src/main/java/org/apache/impala/analysis/Analyzer.java
M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java
M 
testdata/workloads/functional-planner/queries/PlannerTest/predicate-propagation.test
3 files changed, 238 insertions(+), 4 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/15/16915/1
--
To view, visit http://gerrit.cloudera.org:8080/16915
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I50ae71ef31ff138adeeb57008a01eb02e7bb976f
Gerrit-Change-Number: 16915
Gerrit-PatchSet: 1
Gerrit-Owner: Xianqing He <[email protected]>

Reply via email to