turboFei commented on a change in pull request #25863: 
[WIP][SPARK-29037][CORE][SQL] For static partition overwrite, spark may give 
duplicate result.
URL: https://github.com/apache/spark/pull/25863#discussion_r327752961
 
 

 ##########
 File path: 
core/src/main/scala/org/apache/spark/internal/io/FileCommitProtocol.scala
 ##########
 @@ -147,18 +151,29 @@ object FileCommitProtocol extends Logging {
       className: String,
       jobId: String,
       outputPath: String,
-      dynamicPartitionOverwrite: Boolean = false): FileCommitProtocol = {
+      dynamicPartitionOverwrite: Boolean = false,
+      isInsertIntoHadoopFsRelation: Boolean = false,
+      isOverwrite: Boolean = false,
+      staticPartitionKVs: Seq[(String, String)] = Seq.empty[(String, String)]):
 
 Review comment:
   How about encoding the mode of FileCommitProtocol?
   We can encode (dynamicPartitionOverwrite, isInsertIntoHadoopFsRelation and 
isOverwrite) to a parameter, modeCode.
   - 0 non-InsertIntoHadoopFsRelation operation 
   - 1 dynamicPartitionOverwrite
   - 2 staticPartitionOverwrite
   - 3 overwrite non-partitioned table
   - 4 append

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


With regards,
Apache Git Services

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

Reply via email to