Repository: hive Updated Branches: refs/heads/branch-2.1 4981c1b07 -> 1bc13cb36
Revert HIVE-13903 : getFunctionInfo should register jars under a check (Reviewed by Amareshwari) Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/1bc13cb3 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/1bc13cb3 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/1bc13cb3 Branch: refs/heads/branch-2.1 Commit: 1bc13cb36aefb483d288f3eaceb107be55bafdde Parents: 4981c1b Author: Rajat Khandelwal <pro...@apache.org> Authored: Wed Jun 8 19:56:27 2016 +0100 Committer: Jesus Camacho Rodriguez <jcama...@apache.org> Committed: Wed Jun 8 19:56:27 2016 +0100 ---------------------------------------------------------------------- ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/1bc13cb3/ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java ---------------------------------------------------------------------- diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java index 0d650fc..891514b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/Registry.java @@ -556,12 +556,7 @@ public class Registry { // and the current thread may not be able to resolve the UDF. Test for this condition // and if necessary load the JARs in this thread. if (isNative && info != null && info.isPersistent()) { - try { - info.getFunctionClass(); - } catch (Exception e) { - return registerToSessionRegistry(qualifiedName, info); - } - return info; + return registerToSessionRegistry(qualifiedName, info); } if (info != null || !isNative) { return info; // We have the UDF, or we are in the session registry (or both).