You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2015/08/05 21:41:08 UTC

hive git commit: HIVE-11413: Error in detecting availability of HiveSemanticAnalyzerHooks (Raajay Viswanathan, reviewed by Sergio Pena and Xuefu Zhang)

Repository: hive
Updated Branches:
  refs/heads/master 89c02bf5f -> d3a879a7e


HIVE-11413: Error in detecting availability of HiveSemanticAnalyzerHooks (Raajay Viswanathan, reviewed by Sergio Pena and Xuefu Zhang)


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

Branch: refs/heads/master
Commit: d3a879a7ed73895620c2dbc6f6ea2b321ecc6574
Parents: 89c02bf
Author: Sergio Pena <se...@cloudera.com>
Authored: Wed Aug 5 14:39:56 2015 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Wed Aug 5 14:39:56 2015 -0500

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/Driver.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/d3a879a7/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
index 424f4fa..cc85f31 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
@@ -410,7 +410,7 @@ public class Driver implements CommandProcessor {
               HiveSemanticAnalyzerHook.class);
 
       // Do semantic analysis and plan generation
-      if (saHooks != null) {
+      if (saHooks != null && !saHooks.isEmpty()) {
         HiveSemanticAnalyzerHookContext hookCtx = new HiveSemanticAnalyzerHookContextImpl();
         hookCtx.setConf(conf);
         hookCtx.setUserName(userName);