Repository: incubator-ranger
Updated Branches:
  refs/heads/master efdde916c -> 5386d4bdb


RANGER-917: Ranger Hive authorizer updates for changes in Hive


Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/5386d4bd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/5386d4bd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/5386d4bd

Branch: refs/heads/master
Commit: 5386d4bdb2d2e1c5f1a0ed7ce73443b00f6c4a80
Parents: efdde91
Author: Madhan Neethiraj <[email protected]>
Authored: Mon Apr 11 09:54:24 2016 -0700
Committer: Madhan Neethiraj <[email protected]>
Committed: Mon Apr 11 09:54:24 2016 -0700

----------------------------------------------------------------------
 .../authorization/hive/authorizer/RangerHiveAuthorizer.java    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/5386d4bd/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
----------------------------------------------------------------------
diff --git 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
index ea0a6c1..dbd1201 100644
--- 
a/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
+++ 
b/hive-agent/src/main/java/org/apache/ranger/authorization/hive/authorizer/RangerHiveAuthorizer.java
@@ -486,9 +486,11 @@ public class RangerHiveAuthorizer extends 
RangerHiveAuthorizerBase {
                                        hiveObjType = 
HivePrivilegeObjectType.TABLE_OR_VIEW;
                                }
 
-                               
LOG.debug("applyRowFilterAndColumnMasking(hiveObjType=" + hiveObjType + ")");
+                               if(LOG.isDebugEnabled()) {
+                                       
LOG.debug("applyRowFilterAndColumnMasking(hiveObjType=" + hiveObjType + ")");
+                               }
 
-                               if (hiveObjType == 
HivePrivilegeObjectType.DATABASE || hiveObjType == 
HivePrivilegeObjectType.TABLE_OR_VIEW) {
+                               if (hiveObjType == 
HivePrivilegeObjectType.TABLE_OR_VIEW) {
                                        String database = hiveObj.getDbname();
                                        String table    = 
hiveObj.getObjectName();
 

Reply via email to