Skip to content

Commit

Permalink
Add estimatedMemoryReservationDistribution to stage task statistic in…
Browse files Browse the repository at this point in the history
… query completion event
  • Loading branch information
losipiuk committed May 23, 2024
1 parent 22e9539 commit c9483bb
Show file tree
Hide file tree
Showing 3 changed files with 219 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,7 @@ private StageTaskStatistics computeStageTaskStatistics(QueryInfo queryInfo, Stag
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getTotalCpuTime().toMillis())),
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getTotalScheduledTime().toMillis())),
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getPeakUserMemoryReservation().toBytes())),
getTasksDistribution(stageInfo, taskInfo -> taskInfo.estimatedMemory().map(DataSize::toBytes)),
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getRawInputDataSize().toBytes())),
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getRawInputPositions())),
getTasksDistribution(stageInfo, taskInfo -> Optional.of(taskInfo.stats().getProcessedInputDataSize().toBytes())),
Expand Down
Loading

0 comments on commit c9483bb

Please sign in to comment.