You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by su...@apache.org on 2016/08/01 20:46:29 UTC

hive git commit: HIVE_14343: HiveDriverRunHookContext's command is null in HS2 mode (Chao Sun, reviewed by Xuefu Zhang)

Repository: hive
Updated Branches:
  refs/heads/master 75e8be81a -> cee7e4583


HIVE_14343: HiveDriverRunHookContext's command is null in HS2 mode (Chao Sun, reviewed by Xuefu Zhang)


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

Branch: refs/heads/master
Commit: cee7e45839de5866983fefe37b6a16db218ee45a
Parents: 75e8be8
Author: Chao Sun <su...@apache.org>
Authored: Mon Aug 1 13:45:30 2016 -0700
Committer: Chao Sun <su...@apache.org>
Committed: Mon Aug 1 13:46:05 2016 -0700

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


http://git-wip-us.apache.org/repos/asf/hive/blob/cee7e458/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 14f221a..0278673 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
@@ -1262,7 +1262,8 @@ public class Driver implements CommandProcessor {
     SQLState = null;
     downstreamError = null;
 
-    HiveDriverRunHookContext hookContext = new HiveDriverRunHookContextImpl(conf, command);
+    HiveDriverRunHookContext hookContext = new HiveDriverRunHookContextImpl(conf,
+        alreadyCompiled ? ctx.getCmd() : command);
     // Get all the driver run hooks and pre-execute them.
     List<HiveDriverRunHook> driverRunHooks;
     try {