hive git commit: Revert HIVE-13903 : getFunctionInfo should register jars under a check (Reviewed by Amareshwari)

2016-06-08 Thread jcamacho
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 
Authored: Wed Jun 8 19:56:27 2016 +0100
Committer: Jesus Camacho Rodriguez 
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).



hive git commit: Revert HIVE-13903 : getFunctionInfo should register jars under a check (Reviewed by Amareshwari)

2016-06-08 Thread jcamacho
Repository: hive
Updated Branches:
  refs/heads/master 148f35941 -> f4707b1f1


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/f4707b1f
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f4707b1f
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f4707b1f

Branch: refs/heads/master
Commit: f4707b1f1e5e74d12366a2aa682f015becf3b96d
Parents: 148f359
Author: Rajat Khandelwal 
Authored: Wed Jun 8 19:50:46 2016 +0100
Committer: Jesus Camacho Rodriguez 
Committed: Wed Jun 8 19:50:46 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/f4707b1f/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 a89db68..86df74d 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).