hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yongzhi Chen (JIRA)" <>
Subject [jira] [Commented] (HIVE-13991) Union All on view fail with no valid permission on underneath table
Date Fri, 24 Jun 2016 13:42:16 GMT


Yongzhi Chen commented on HIVE-13991:

init(true); combined with genResolvedParseTree() do the step one work, so assign mergeIsDirect
in init(boolean) is fine. You can think it is the same reason as clear pruned partitions or
There are only two places in our code that calls genResolvedParseTree() , list it may help
you understand the code:
          if (reAnalyzeAST) {
            // Assumption: At this point Parse Tree gen & resolution will always
            // be true (since we started out that way).
            super.genResolvedParseTree(ast, new PlannerContext());

> Union All on view fail with no valid permission on underneath table
> -------------------------------------------------------------------
>                 Key: HIVE-13991
>                 URL:
>             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
> select * from V union all select * from V 
> failed with:
> {noformat}
> 0: jdbc:hive2://********> select * from s07view union all select * from s07view limit
> Error: Error while compiling statement: FAILED: SemanticException No valid privileges
>  Required privileges for this query: Server=server1->Db=default->Table=sample_07->action=select;
> {noformat} 

This message was sent by Atlassian JIRA

View raw message