[
https://issues.apache.org/jira/browse/HIVE-13991?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15326716#comment-15326716
]
Yongzhi Chen edited comment on HIVE-13991 at 6/13/16 1:52 PM:
--------------------------------------------------------------
Second patch working on the case
select * from view union all select * from table
Fix test failure of:
org.apache.hadoop.hive.ql.plan.TestReadEntityDirect.testSelectEntityViewDirectUnion
It treats the ReadEntity created during genResolvedParseTree
differently: process its isDirect flag even ReadEntity does not have parents.
was (Author: ychena):
Second patch working on the case
select * from view union all select * from table
Fix test failure of:
org.apache.hadoop.hive.ql.plan.TestReadEntityDirect.testSelectEntityViewDirectUnion
> Union All on view fail with no valid permission on underneath table
> -------------------------------------------------------------------
>
> Key: HIVE-13991
> URL: https://issues.apache.org/jira/browse/HIVE-13991
> Project: Hive
> Issue Type: Bug
> Components: Query Planning
> Reporter: Yongzhi Chen
> Assignee: Yongzhi Chen
> Attachments: HIVE-13991.1.patch, HIVE-13991.2.patch
>
>
> When sentry is enabled.
> create view V as select * from T;
> When the user has read permission on view V, but does not have read
> permission on table T,
> select * from V union all select * from V
> failed with:
> {noformat}
> 0: jdbc:hive2://********> select * from s07view union all select * from
> s07view limit 1;
> Error: Error while compiling statement: FAILED: SemanticException No valid
> privileges
> Required privileges for this query:
> Server=server1->Db=default->Table=sample_07->action=select;
> (state=42000,code=40000)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)