Repository: hive
Updated Branches:
  refs/heads/branch-3 550cc6199 -> f8f0ca50a


HIVE-20494: GenericUDFRestrictInformationSchema is broken after HIVE-19440 
(Daniel Dai, reviewed by Vaibhav Gumashta)


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

Branch: refs/heads/branch-3
Commit: f8f0ca50a35ddd05785cb1581c41af853ef9a5ef
Parents: 550cc61
Author: Daniel Dai <dai...@gmail.com>
Authored: Mon Sep 17 14:40:33 2018 -0700
Committer: Daniel Dai <dai...@gmail.com>
Committed: Mon Sep 17 14:40:33 2018 -0700

----------------------------------------------------------------------
 .../udf/generic/GenericUDFRestrictInformationSchema.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/f8f0ca50/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFRestrictInformationSchema.java
----------------------------------------------------------------------
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFRestrictInformationSchema.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFRestrictInformationSchema.java
index 3635a5a..03875ff 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFRestrictInformationSchema.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFRestrictInformationSchema.java
@@ -97,12 +97,11 @@ public class GenericUDFRestrictInformationSchema extends 
GenericUDF {
             LOG.warn("Error instantiating 
hive.security.metastore.authorization.manager", e);
           }
         }
-
-        if (enableHS2PolicyProvider || enableMetastorePolicyProvider) {
-          enabled = new BooleanWritable(true);
-        } else {
-          enabled = new BooleanWritable(false);
-        }
+      }
+      if (enableHS2PolicyProvider || enableMetastorePolicyProvider) {
+        enabled = new BooleanWritable(true);
+      } else {
+        enabled = new BooleanWritable(false);
       }
     }
 

Reply via email to