XorSum commented on code in PR #6112:
URL: https://github.com/apache/kyuubi/pull/6112#discussion_r1506942717
##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/spark/kyuubi/SQLOperationListener.scala:
##########
@@ -140,6 +145,14 @@ class SQLOperationListener(
val stageInfo = stageCompleted.stageInfo
val stageId = stageInfo.stageId
val stageAttempt = SparkStageAttempt(stageInfo.stageId,
stageInfo.attemptNumber())
+ val taskMetrics = stageInfo.taskMetrics
+ if (taskMetrics != null) {
+ info(s"stageId=${stageCompleted.stageInfo.stageId}, " +
+
s"stageRunTime=${KyuubiSparkUtil.formatDuration(taskMetrics.executorRunTime)},
" +
+
s"stageCpuTime=${KyuubiSparkUtil.formatDurationNano(taskMetrics.executorCpuTime)}")
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]