Fang-Yu Rao has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21688


Change subject: IMPALA-13262: Do not always migrate inferred predicates into 
inline view
......................................................................

IMPALA-13262: Do not always migrate inferred predicates into inline view

This patch removes a predicate inferred from a set of analytic
predicates if both sides of the inferred predicate reference the same
base table when migrating those analytic predicates into an inline
view. This is to prevent Impala from pushing the inferred conjunct to
the scan node before the analytic functions are applied, which could
produce an incorrect result.

Testing:
 - Added additional query and planner test cases to verify Impala's
   behavior after this patch.
 - Verified the patch passed the core tests.

Change-Id: I6e2632b3b1a140ae0104ceba4e2f474ac1bbcda1
---
M fe/src/main/java/org/apache/impala/planner/SingleNodePlanner.java
M testdata/workloads/functional-planner/queries/PlannerTest/inline-view.test
M testdata/workloads/functional-query/queries/QueryTest/inline-view.test
3 files changed, 84 insertions(+), 6 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6e2632b3b1a140ae0104ceba4e2f474ac1bbcda1
Gerrit-Change-Number: 21688
Gerrit-PatchSet: 1
Gerrit-Owner: Fang-Yu Rao <[email protected]>

Reply via email to