Yongzhi Chen has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/14403


Change subject: IMPALA-9025: Handle AnalysisException caused by expr_rewrites 
properly
......................................................................

IMPALA-9025: Handle AnalysisException caused by expr_rewrites
properly

When the optimizer rewrites conjunct exprs with constant values,
a new expr may cause AnalysisException. In this case,
the conjuncts should use the original expr, not the intermediate
expr produced by propagateConstants. Fixed optimizeConjuncts
to handle this scenario properly.

Tests:
Add unit test for alias.
Ran exhaustive tests.

Change-Id: Ic57bf3f4cdabfe9c5bb304d735bfbf1c0ca7a274
---
M fe/src/main/java/org/apache/impala/analysis/Expr.java
M testdata/workloads/functional-query/queries/QueryTest/alias.test
2 files changed, 17 insertions(+), 3 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic57bf3f4cdabfe9c5bb304d735bfbf1c0ca7a274
Gerrit-Change-Number: 14403
Gerrit-PatchSet: 1
Gerrit-Owner: Yongzhi Chen <yc...@cloudera.com>

Reply via email to