FAQ
Author: jdere
Date: Thu Apr 16 17:35:21 2015
New Revision: 1674115

URL: http://svn.apache.org/r1674115
Log:
HIVE-10288: Cannot call permanent UDFs (Chinna Rao Lalam via Jason Dere)

Modified:
     hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java?rev=1674115&r1=1674114&r2=1674115&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java Thu Apr 16 17:35:21 2015
@@ -101,6 +101,7 @@ import org.apache.hadoop.hive.metastore.
  import org.apache.hadoop.hive.ql.ErrorMsg;
  import org.apache.hadoop.hive.ql.exec.FunctionRegistry;
  import org.apache.hadoop.hive.ql.exec.FunctionTask;
+import org.apache.hadoop.hive.ql.exec.FunctionUtils;
  import org.apache.hadoop.hive.ql.exec.Utilities;
  import org.apache.hadoop.hive.ql.index.HiveIndexHandler;
  import org.apache.hadoop.hive.ql.io.AcidUtils;
@@ -174,8 +175,9 @@ public class Hive {
        for (String functionName : db.getFunctions(dbName, "*")) {
          Function function = db.getFunction(dbName, functionName);
          try {
- FunctionRegistry.registerPermanentFunction(functionName, function.getClassName(), false,
- FunctionTask.toFunctionResource(function.getResourceUris()));
+ FunctionRegistry.registerPermanentFunction(
+ FunctionUtils.qualifyFunctionName(functionName, dbName), function.getClassName(),
+ false, FunctionTask.toFunctionResource(function.getResourceUris()));
          } catch (Exception e) {
            LOG.warn("Failed to register persistent function " +
                functionName + ":" + function.getClassName() + ". Ignore and continue.");

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedApr 16, '15 at 5:35p
activeApr 16, '15 at 5:35p
posts1
users1
websitehive.apache.org

1 user in discussion

Jdere: 1 post

People

Translate

site design / logo © 2021 Grokbase