You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by se...@apache.org on 2016/01/08 21:03:52 UTC
hive git commit: HIVE-12792 : HIVE-12075 didn't update operation type
for plugins (Sergey Shelukhin, reviewed by Thejas M Nair)
Repository: hive
Updated Branches:
refs/heads/master 19726b7f6 -> 4f2164268
HIVE-12792 : HIVE-12075 didn't update operation type for plugins (Sergey Shelukhin, reviewed by Thejas M Nair)
Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/4f216426
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/4f216426
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/4f216426
Branch: refs/heads/master
Commit: 4f2164268bea42b9622976b74ceabcd1211f327a
Parents: 19726b7
Author: Sergey Shelukhin <se...@apache.org>
Authored: Fri Jan 8 12:03:31 2016 -0800
Committer: Sergey Shelukhin <se...@apache.org>
Committed: Fri Jan 8 12:03:31 2016 -0800
----------------------------------------------------------------------
.../hive/ql/security/authorization/plugin/HiveOperationType.java | 1 +
.../security/authorization/plugin/sqlstd/Operation2Privilege.java | 2 ++
2 files changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hive/blob/4f216426/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java
index 5418e9a..078f07e 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java
@@ -57,6 +57,7 @@ public enum HiveOperationType {
ALTERPARTITION_SERDEPROPERTIES,
ALTERTABLE_CLUSTER_SORT,
ANALYZE_TABLE,
+ CACHE_METADATA,
ALTERTABLE_BUCKETNUM,
ALTERPARTITION_BUCKETNUM,
ALTERTABLE_UPDATETABLESTATS,
http://git-wip-us.apache.org/repos/asf/hive/blob/4f216426/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java
index 8cfca0b..c6143f6 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java
@@ -256,6 +256,8 @@ public class Operation2Privilege {
op2Priv.put(HiveOperationType.ANALYZE_TABLE, PrivRequirement.newIOPrivRequirement
(arr(SQLPrivTypeGrant.SELECT_NOGRANT, SQLPrivTypeGrant.INSERT_NOGRANT), null));
+ op2Priv.put(HiveOperationType.CACHE_METADATA, PrivRequirement.newIOPrivRequirement
+(arr(SQLPrivTypeGrant.SELECT_NOGRANT, SQLPrivTypeGrant.INSERT_NOGRANT), null));
op2Priv.put(HiveOperationType.SHOWDATABASES, PrivRequirement.newIOPrivRequirement
(null, null));
op2Priv.put(HiveOperationType.SHOWTABLES, PrivRequirement.newIOPrivRequirement