weixiuli opened a new pull request #34933:
URL: https://github.com/apache/spark/pull/34933


   
   ### What changes were proposed in this pull request?
   Reduce the output partition of output stage to avoid producing small files.
   
   ### Why are the changes needed?
   
   The partition size of the finalStage with `DataWritingCommand` or 
`V2TableWriteExec`  may use the `ADVISORY_PARTITION_SIZE_IN_BYTES` which is 
smaller one, and  may produce some small files, it is bad for production.
   
   Sometime, we may adjust `ADVISORY_PARTITION_SIZE_IN_BYTES` to a big one to 
avoid above , but it is NOT a good idea, it may take effect other Jobs or 
stages to  coalesce small shuffle partitions or split skewed shuffle partition.
   
   So we should introduce a new partition size instead of  
`ADVISORY_PARTITION_SIZE_IN_BYTES`  for  the finalStage with 
`DataWritingCommand` or `V2TableWriteExec`  to avoid small files.
   
   
   ### Does this PR introduce _any_ user-facing change?
   
   NO
   
   ### How was this patch tested?
   Added unittests.
   


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