You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "ulysses-you (via GitHub)" <gi...@apache.org> on 2023/02/21 09:36:10 UTC

[GitHub] [spark] ulysses-you commented on a diff in pull request #39428: [SPARK-41765][SQL] Pull out v1 write metrics to WriteFiles

ulysses-you commented on code in PR #39428:
URL: https://github.com/apache/spark/pull/39428#discussion_r1112803032


##########
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:
   It does not possible since all v1 write pass one tracker and we only do that if WriteFiles exists. But I'm fine to change it to be compatible with developers.



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org