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