cloud-fan commented on code in PR #39428:
URL: https://github.com/apache/spark/pull/39428#discussion_r1112754771


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala:
##########
@@ -176,6 +153,40 @@ object FileFormatWriter extends Logging {
     //    V1 write command will be empty).
     if (Utils.isTesting) outputOrderingMatched = orderingMatched
 
+    SQLExecution.checkSQLExecutionId(sparkSession)
+
+    val finalStatsTrackers = if (writeFilesOpt.isDefined) {
+      val writeFilesMetrics = writeFilesOpt.get.metrics
+      val finalMetrics = statsTrackers match {
+        case Seq(tracker: BasicWriteJobStatsTracker) =>

Review Comment:
   should we use `statsTrackers.map`? in case there are more than one trackers 
in `statsTrackers` (seems possible w.r.t. the code)



-- 
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]

Reply via email to