Skip to content

Commit

Permalink
Fix QueryStatistics wallTime
Browse files Browse the repository at this point in the history
Previously it would incorrectly report query total scheduled time,
instead of wall time (elapsed time).
  • Loading branch information
willshen authored and findepi committed Oct 11, 2019
1 parent 01ca48b commit 7cc7b51
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -224,7 +224,7 @@ private QueryStatistics createQueryStatistics(QueryInfo queryInfo)
QueryStats queryStats = queryInfo.getQueryStats();
return new QueryStatistics(
ofMillis(queryStats.getTotalCpuTime().toMillis()),
ofMillis(queryStats.getTotalScheduledTime().toMillis()),
ofMillis(queryStats.getElapsedTime().toMillis()),
ofMillis(queryStats.getQueuedTime().toMillis()),
Optional.of(ofMillis(queryStats.getResourceWaitingTime().toMillis())),
Optional.of(ofMillis(queryStats.getAnalysisTime().toMillis())),
Expand Down

0 comments on commit 7cc7b51

Please sign in to comment.