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
---