[ 
https://issues.apache.org/jira/browse/SENTRY-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14970088#comment-14970088
 ] 

Anne Yu commented on SENTRY-745:
--------------------------------

Added a test case to test this issue. Once it's fixed we can enable the test. 
SENTRY-748

> Grant select on view2 created from view1, select from view2 fails, it 
> requires select privilege from view1
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-745
>                 URL: https://issues.apache.org/jira/browse/SENTRY-745
>             Project: Sentry
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Anne Yu
>
> Create view_from_test_complex_view from test_complex_view:
> {code}
> describe formatted view_from_test_complex_view;
> | View Expanded Text:           | SELECT `userid` AS `userid`, `link` AS 
> `link` FROM (SELECT userid,link from 
> `test_complex_view_database`.`test_complex_view`) 
> `test_complex_view_database.view_from_test_complex_view`  | NULL
> {code}
> Grant select to a test group, use a user from that group to select will 
> encounter privilege error:
> {code}
> 0: jdbc:hive2://anneyu-sentry-ha-10-4.ent.clo> select * from 
> view_from_test_complex_view;
> Error: Error while compiling statement: FAILED: SemanticException No valid 
> privileges
>  Required privileges for this query: 
> Server=server1->Db=test_complex_view_database->Table=test_complex_view->action=select;
>  (state=42000,code=40000)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to