LuciferYang commented on a change in pull request #30681:
URL: https://github.com/apache/spark/pull/30681#discussion_r573403257



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala
##########
@@ -223,6 +223,28 @@ object FileFormatWriter extends Logging {
       processStats(description.statsTrackers, ret.map(_.summary.stats))
       logInfo(s"Finished processing stats for write job ${description.uuid}.")
 
+      val insertStats : String = try {
+        description.statsTrackers.map{
+          s =>
+            val header = s"File stats [ "
+            val metrics = s.asInstanceOf[BasicWriteJobStatsTracker].metrics
+            val inner = metrics.map{
+              p => p._1 + "=" + p._2.value

Review comment:
       method + in class Int is deprecated since 2.13.0,  we should use the 
string interpolation `s"$num$str"` to avoid some new compilation warnings




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to