[
https://issues.apache.org/jira/browse/DRILL-6025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16322551#comment-16322551
]
ASF GitHub Bot commented on DRILL-6025:
---------------------------------------
Github user prasadns14 commented on a diff in the pull request:
https://github.com/apache/drill/pull/1074#discussion_r161012925
--- 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 --
@arina-ielchiieva, thank you for catching the mistake.
Fixed it
> Execution time of a running query shown as 'NOT AVAILABLE'
> ----------------------------------------------------------
>
> Key: DRILL-6025
> URL: https://issues.apache.org/jira/browse/DRILL-6025
> Project: Apache Drill
> Issue Type: Improvement
> Components: Client - HTTP
> Affects Versions: 1.11.0
> Reporter: Prasad Nagaraj Subramanya
> Assignee: Prasad Nagaraj Subramanya
> Priority: Minor
> Fix For: 1.13.0
>
>
> When a query is in 'RUNNING' state, the execution time is shown as 'NOT
> AVAILABLE'
> We could show the execution duration till the current time
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)