maropu commented on a change in pull request #25844: [SPARK-29167][SQL] Make Metrics of Analyzer/Optimizer use Scientific counting human readable URL: https://github.com/apache/spark/pull/25844#discussion_r325981158
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/rules/QueryExecutionMetering.scala ########## @@ -85,10 +85,11 @@ case class QueryExecutionMetering() { s"$ruleName $runtimeValue $numRunValue" }.mkString("\n", "\n", "") + val format = new java.text.DecimalFormat("#,##0.#########") s""" |=== Metrics of Analyzer/Optimizer Rules === |Total number of runs: $totalNumRuns - |Total time: ${totalTime / NANOS_PER_SECOND.toDouble} seconds + |Total time: ${format.format(totalTime / NANOS_PER_SECOND.toDouble)} seconds Review comment: Just use `String.format`? ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org