HIVE-10957 : QueryPlan's start time is incorrect in certain cases (Wei Zheng, 
reviewed by Gunther Hagleitner)


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

Branch: refs/heads/branch-1
Commit: 2fb6d087fc7695d0cd67d8f7bc4898f9c4c84216
Parents: 1d77cb0
Author: Thejas Nair <[email protected]>
Authored: Tue Jun 9 14:21:36 2015 -0700
Committer: Thejas Nair <[email protected]>
Committed: Tue Jun 9 14:22:09 2015 -0700

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


http://git-wip-us.apache.org/repos/asf/hive/blob/2fb6d087/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 5dac29f..669e6be 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/Driver.java
@@ -1173,6 +1173,9 @@ public class Driver implements CommandProcessor {
       if (ret != 0) {
         return createProcessorResponse(ret);
       }
+    } else {
+      // Since we're reusing the compiled plan, we need to update its start 
time for current run
+      plan.setQueryStartTime(perfLogger.getStartTime(PerfLogger.DRIVER_RUN));
     }
 
     // the reason that we set the txn manager for the cxt here is because each

Reply via email to