You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by da...@apache.org on 2018/09/17 21:40:06 UTC
hive git commit: HIVE-20494: GenericUDFRestrictInformationSchema is
broken after HIVE-19440 (Daniel Dai, reviewed by Vaibhav Gumashta)
Repository: hive
Updated Branches:
refs/heads/master 393b382af -> e4f4283c7
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/e4f4283c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/e4f4283c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/e4f4283c
Branch: refs/heads/master
Commit: e4f4283c76dd3a13d0bf3a6dc680bd37e8ae5cd4
Parents: 393b382
Author: Daniel Dai <da...@gmail.com>
Authored: Mon Sep 17 14:39:33 2018 -0700
Committer: Daniel Dai <da...@gmail.com>
Committed: Mon Sep 17 14:39: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/e4f4283c/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);
}
}