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/0892477b Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/0892477b Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/0892477b Branch: refs/heads/master Commit: 0892477ba17cb984d7bde19bb33f915e452b315b Parents: aae9ee6 Author: Thejas Nair <[email protected]> Authored: Tue Jun 9 14:21:36 2015 -0700 Committer: Thejas Nair <[email protected]> Committed: Tue Jun 9 14:21:36 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/0892477b/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
