panbingkun commented on code in PR #48262:
URL: https://github.com/apache/spark/pull/48262#discussion_r1776669267
##########
sql/core/src/test/scala/org/apache/spark/sql/execution/columnar/compression/CompressionSchemeBenchmark.scala:
##########
@@ -91,7 +91,7 @@ object CompressionSchemeBenchmark extends BenchmarkBase with
AllCompressionSchem
schemes.filter(_.supports(tpe)).foreach { scheme =>
val (compressFunc, compressionRatio, buf) = prepareEncodeInternal(count,
tpe, scheme, input)
- val label =
s"${getFormattedClassName(scheme)}(${compressionRatio.formatted("%.3f")})"
Review Comment:
I accidentally discovered this while upgrading to `scala 2.13.15`.
I searched the `Spark repo` and found that this mode (`value.
formatted(formatString)`) was only used here.
--
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]