Fredy Wijaya has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/9514


Change subject: IMPALA-6605: Exception hidden on complex types
......................................................................

IMPALA-6605: Exception hidden on complex types

This patch fixes the issue when we have a column privilege on a
particular table, but the statement has an analysis error.

Example:
> grant select(int_struct_col) on table functional.allcomplextypes
> to role test_role;

> select 1 from functional.allcomplextypes.int_struct_col;

The select statement above should throw an AnalysisException and not an
AuthorizationException since we have int_struct_col column privilege on
functional.allcomplextypes table.

Testing:
- Ran all front-end tests

Change-Id: I3ae62fe63b82899d1467a23422d4a73f1471aa84
---
M fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java
M fe/src/main/java/org/apache/impala/analysis/Analyzer.java
M fe/src/main/java/org/apache/impala/common/AnalysisException.java
M fe/src/test/java/org/apache/impala/analysis/AuthorizationTest.java
4 files changed, 78 insertions(+), 7 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/14/9514/3
--
To view, visit http://gerrit.cloudera.org:8080/9514
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ae62fe63b82899d1467a23422d4a73f1471aa84
Gerrit-Change-Number: 9514
Gerrit-PatchSet: 3
Gerrit-Owner: Fredy Wijaya <fwij...@cloudera.com>
Gerrit-Reviewer: Adam Holley <g...@holleyism.com>
Gerrit-Reviewer: Fredy Wijaya <fwij...@cloudera.com>

Reply via email to