[
https://issues.apache.org/jira/browse/IMPALA-6605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gabor Kaszab updated IMPALA-6605:
---------------------------------
Labels: complextype (was: )
> Exception hidden on complex type
> --------------------------------
>
> Key: IMPALA-6605
> URL: https://issues.apache.org/jira/browse/IMPALA-6605
> Project: IMPALA
> Issue Type: Bug
> Components: Frontend
> Reporter: Adam Holley
> Assignee: Fredy Wijaya
> Priority: Minor
> Labels: complextype
>
> {code:java}
> create table t1 (
> id int,
> a array<struct<f1:int,f2:string>>,
> c3 array<struct<a1:array<int>,a2:array<struct<x:int,y:int,a3:array<int>>>>>,
> c5
> map<int,struct<m1:map<int,string>,m2:map<int,struct<x:int,y:int,m3:map<int,int>>>>>
> );
> grant select(a) on table t1 to role foo_role;
> select 1 from t1.a.f1; -- ERROR: AuthorizationException: User 'impdev' does
> not have privileges to execute 'SELECT' on: t1.a{code}
> Since we have column privilege on t1.a, the error message is wrong to say
> that we do not have privileges to execute 'SELECT on: t1.a. We should be
> getting a proper exception message like below instead.
> {noformat}
> AnalysisException: Illegal table reference to non-collection type: 't1.a.f1'
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]