Author: thejas
Date: Wed Apr 2 18:19:17 2014
New Revision: 1584119
URL: http://svn.apache.org/r1584119
Log:
HIVE-6804 : sql std auth - granting existing table privilege to owner should
result in error (Thejas Nair, reviewed by Ashutosh Chauhan)
Modified:
hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Modified:
hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
URL:
http://svn.apache.org/viewvc/hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java?rev=1584119&r1=1584118&r2=1584119&view=diff
==============================================================================
---
hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
(original)
+++
hive/branches/branch-0.13/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java
Wed Apr 2 18:19:17 2014
@@ -386,7 +386,7 @@ public class SessionState {
authorizerV2 = authorizerFactory.createHiveAuthorizer(new
HiveMetastoreClientFactoryImpl(),
getConf(), authenticator);
// grant all privileges for table to its owner
- getConf().setVar(ConfVars.HIVE_AUTHORIZATION_TABLE_OWNER_GRANTS,
"insert,select,update,delete");
+ getConf().setVar(ConfVars.HIVE_AUTHORIZATION_TABLE_OWNER_GRANTS,
"INSERT,SELECT,UPDATE,DELETE");
String hooks = getConf().getVar(ConfVars.PREEXECHOOKS).trim();
if (hooks.isEmpty()) {
hooks = DisallowTransformHook.class.getName();