dongjoon-hyun commented on a change in pull request #30141:
URL: https://github.com/apache/spark/pull/30141#discussion_r510985437



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileFormatWriter.scala
##########
@@ -164,6 +164,10 @@ object FileFormatWriter extends Logging {
 
     SQLExecution.checkSQLExecutionId(sparkSession)
 
+    // propagate the decription UUID into the jobs, so that committers
+    // get an ID guaranteed to be unique.
+    job.getConfiguration.set("spark.sql.sources.writeJobUUID", 
description.uuid)

Review comment:
       Do you mean Apache Hadoop S3A committer use this? 
`spark.sql.sources.writeJobUUID` is not used inside Spark 3.x/2.x code base.
   
   In Spark 1.6, it was a part of file name.
   ```scala
   val uniqueWriteJobId = conf.get("spark.sql.sources.writeJobUUID")
   ...
   val filename = f"part-r-$partition%05d-$uniqueWriteJobId.orc"
   ```




----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to