Wenzhe Zhou has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/15123


Change subject: IMPALA-7002: Throw AuthorizationException when user accessing 
non-existent table/database in CTE without any privilege.
......................................................................

IMPALA-7002: Throw AuthorizationException when user accessing
non-existent table/database in CTE without any privilege.

Register all privilege requests made from the withClause analyzer
when analyze function throw AnalysisException.

Testing:
 - Manual test: ran CTE with non-existent table/database in
   impala-shell, verified that it results in AuthorizationException.
 - Added CTE test cases for non-existent table/database in
   AuthorizationStmtTest.
 - Passed all FE tests.
 - Passed pre-review-test on Jenkins, including FE tests, BE tests,
   EE tests, JDBS test and cluster tests.

Change-Id: Ia6b657a7147a136198a9a97a679c9131ee814577
---
M fe/src/main/java/org/apache/impala/analysis/WithClause.java
M fe/src/test/java/org/apache/impala/authorization/AuthorizationStmtTest.java
2 files changed, 17 insertions(+), 1 deletion(-)



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia6b657a7147a136198a9a97a679c9131ee814577
Gerrit-Change-Number: 15123
Gerrit-PatchSet: 2
Gerrit-Owner: Wenzhe Zhou <[email protected]>
Gerrit-Reviewer: Bikramjeet Vig <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>

Reply via email to