gengliangwang commented on code in PR #45903:
URL: https://github.com/apache/spark/pull/45903#discussion_r1554418643
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/RuleExecutor.scala:
##########
@@ -88,15 +88,15 @@ class PlanChangeLogger[TreeType <: TreeNode[_]] extends
Logging {
}
def logMetrics(metrics: QueryExecutionMetrics): Unit = {
- val totalTime = metrics.time / NANOS_PER_SECOND.toDouble
- val totalTimeEffective = metrics.timeEffective / NANOS_PER_SECOND.toDouble
+ val totalTime = metrics.time / NANOS_PER_MILLIS.toDouble
+ val totalTimeEffective = metrics.timeEffective / NANOS_PER_MILLIS.toDouble
val message: MessageWithContext =
log"""
|=== Metrics of Executed Rules ===
|Total number of runs: ${MDC(RULE_NUMBER_OF_RUNS, metrics.numRuns)}
- |Total time: ${MDC(TIME_UNITS, totalTime)} seconds
+ |Total time: ${MDC(EFFECTIVE_TIME, totalTime)} ms
Review Comment:
cc @dtenedor
--
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]