Hello Quanlong Huang, Anurag Mantripragada, Vihang Karajgaonkar, Impala Public 
Jenkins,

I'd like you to reexamine a change. Please visit

    http://gerrit.cloudera.org:8080/15371

to look at the new patch set (#2).

Change subject: IMPALA-9429: Unioned partition columns break partition pruning
......................................................................

IMPALA-9429: Unioned partition columns break partition pruning

In the case of a union query where predicates are pushed into the union,
predicate Exprs can contain SlotReft that are transformed into constants
after analysis and eligible for constant folding. During partition
pruning there is a check that eligible constant folding has already
occurred which was failing and reporting IllegalStateException since the
surrounding code only handles specific cases.

This fix adds constant a folding call after union substitutions occur
from SingleNodePlanner.createUnionPlan

Testing:
Testcases added to PlannerTest/union.test based on provided repo using
alltypes tables.

Change-Id: I1c1384c2cd1ad5f7024449196f9a348ecdccb60b
---
M fe/src/main/java/org/apache/impala/planner/HdfsPartitionPruner.java
M testdata/workloads/functional-planner/queries/PlannerTest/union.test
2 files changed, 146 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/71/15371/2
--
To view, visit http://gerrit.cloudera.org:8080/15371
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1c1384c2cd1ad5f7024449196f9a348ecdccb60b
Gerrit-Change-Number: 15371
Gerrit-PatchSet: 2
Gerrit-Owner: Kurt Deschler <[email protected]>
Gerrit-Reviewer: Anurag Mantripragada <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Kurt Deschler <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Vihang Karajgaonkar <[email protected]>

Reply via email to