You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by arina-ielchiieva <gi...@git.apache.org> on 2018/01/11 14:59:35 UTC
[GitHub] drill pull request #1074: DRILL-6025: Display execution time of a query in R...
Github user arina-ielchiieva commented on a diff in the pull request:
https://github.com/apache/drill/pull/1074#discussion_r160982037
--- Diff: exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/profile/ProfileWrapper.java ---
@@ -211,16 +211,25 @@ public String getExecutionDuration() {
return NOT_AVAILABLE_LABEL;
}
+ long queryEndTime;
+
+ // Check if State is RUNNING, set end time to current time
+ if (profile.getState() == QueryState.RUNNING) {
--- End diff --
@prasadns14 I think that after rebase you have lost one of the initial changes. Since you did not remove check in previous if statement for `profile.getState() == QueryState.RUNNING`, this if statement will never be executed.
---