You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2016/05/09 23:21:27 UTC

hive git commit: HIVE-13700: TestHiveOperationType is failing on master (Hari Subramaniyan, reviewed by Ashutosh Chauhan)

Repository: hive
Updated Branches:
  refs/heads/master 6c4c63694 -> 501ab99ff


HIVE-13700: TestHiveOperationType is failing on master (Hari Subramaniyan, reviewed by Ashutosh Chauhan)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/501ab99f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/501ab99f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/501ab99f

Branch: refs/heads/master
Commit: 501ab99ff6f41479143c1cc1291d49b6758a8334
Parents: 6c4c636
Author: Hari Subramaniyan <ha...@apache.org>
Authored: Mon May 9 16:21:18 2016 -0700
Committer: Hari Subramaniyan <ha...@apache.org>
Committed: Mon May 9 16:21:18 2016 -0700

----------------------------------------------------------------------
 .../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/501ab99f/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 b5dd100..810da48 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
@@ -52,6 +52,7 @@ public enum HiveOperationType {
   ALTERTABLE_PROPERTIES,
   ALTERTABLE_SERIALIZER,
   ALTERTABLE_PARTCOLTYPE,
+  ALTERTABLE_DROPCONSTRAINT,
   ALTERPARTITION_SERIALIZER,
   ALTERTABLE_SERDEPROPERTIES,
   ALTERPARTITION_SERDEPROPERTIES,

http://git-wip-us.apache.org/repos/asf/hive/blob/501ab99f/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 dc80c53..3f138fb 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
@@ -231,6 +231,8 @@ public class Operation2Privilege {
 (OWNER_PRIV_AR,  OWNER_PRIV_AR));
     op2Priv.put(HiveOperationType.TRUNCATETABLE, PrivRequirement.newIOPrivRequirement
 (OWNER_PRIV_AR, OWNER_PRIV_AR));
+    op2Priv.put(HiveOperationType.ALTERTABLE_DROPCONSTRAINT, PrivRequirement.newIOPrivRequirement
+(OWNER_PRIV_AR, OWNER_PRIV_AR));
 
     //table ownership for create/drop/alter index
     op2Priv.put(HiveOperationType.CREATEINDEX, PrivRequirement.newIOPrivRequirement