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

jirapos...@reviews.apache.org commented on HIVE-2405:
-----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/1646/#review1774
-----------------------------------------------------------



trunk/ql/src/test/queries/clientpositive/authorization_7.q
<https://reviews.apache.org/r/1646/#comment4051>

    yes. what we want to do is to test the global privilege. The first command 
is to grant a global privilege, and after that do test with that. 


- Yongqiang


On 2011-08-24 22:23:39, Yongqiang He wrote:
bq.  
bq.  -----------------------------------------------------------
bq.  This is an automatically generated e-mail. To reply, visit:
bq.  https://reviews.apache.org/r/1646/
bq.  -----------------------------------------------------------
bq.  
bq.  (Updated 2011-08-24 22:23:39)
bq.  
bq.  
bq.  Review request for hive and Ning Zhang.
bq.  
bq.  
bq.  Summary
bq.  -------
bq.  
bq.  get_privilege does not get user level privilege and should return 
emptylist instead of null
bq.  
bq.  
bq.  This addresses bug HIVE-2405.
bq.      https://issues.apache.org/jira/browse/HIVE-2405
bq.  
bq.  
bq.  Diffs
bq.  -----
bq.  
bq.    
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java 
1161232 
bq.    trunk/ql/src/test/queries/clientpositive/authorization_7.q PRE-CREATION 
bq.    trunk/ql/src/test/results/clientpositive/authorization_7.q.out 
PRE-CREATION 
bq.  
bq.  Diff: https://reviews.apache.org/r/1646/diff
bq.  
bq.  
bq.  Testing
bq.  -------
bq.  
bq.  
bq.  Thanks,
bq.  
bq.  Yongqiang
bq.  
bq.



> get_privilege does not get user level privilege
> -----------------------------------------------
>
>                 Key: HIVE-2405
>                 URL: https://issues.apache.org/jira/browse/HIVE-2405
>             Project: Hive
>          Issue Type: Bug
>            Reporter: He Yongqiang
>            Assignee: He Yongqiang
>         Attachments: HIVE-2405.1.patch, HIVE-2405.2.patch
>
>
> hive> set hive.security.authorization.enabled=true;
> hive>  grant all to user heyongqiang;              
> hive> show grant user heyongqiang;                 
> principalName heyongqiang     
> principalType USER    
> privilege     All     
> grantTime     Wed Aug 24 11:51:54 PDT 2011    
> grantor       heyongqiang     
> Time taken: 0.032 seconds
> hive>  CREATE TABLE src (foo INT, bar STRING);     
> Authorization failed:No privilege 'Create' found for outputs { 
> database:default}. Use show grant to get more details.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to