Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/21037


Change subject: IMPALA-12811: Exception during re-analyze can be lost
......................................................................

IMPALA-12811: Exception during re-analyze can be lost

When there is an AnalysisException during re-analyze, we try to print
the re-written and original statements via invoking toSql() on them.
But toSql() fails because the analysis of the statement was incomplete,
so it throws another exception (typically an IllegalStateException
without any relevant information about the original issue).

This patch wraps the original AnalysisException into a new exception
that just mentions that the error occurred after query rewrite.

Testing:
 * added a column masking test with an invalid masking function

Change-Id: Ie6e36b08703c07a2a8d68a4ec0e8ddd65ba03199
---
M fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java
M 
testdata/workloads/functional-query/queries/QueryTest/ranger_column_masking.test
M tests/authorization/test_ranger.py
3 files changed, 19 insertions(+), 4 deletions(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6e36b08703c07a2a8d68a4ec0e8ddd65ba03199
Gerrit-Change-Number: 21037
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to