xuanyuanking opened a new pull request #27413: [SPARK-29938][SQL][FOLLOW-UP] 
Improve AlterTableAddPartitionCommand
URL: https://github.com/apache/spark/pull/27413
 
 
   
   ### What changes were proposed in this pull request?
   This PR improves `AlterTableAddPartitionCommand` by:
   1. adds an internal config for partitions batch size to avoid hard code
   2. reuse `InMemoryFileIndex.bulkListLeafFiles` to perform parallel file 
listing to improve code reuse
   
   ### Why are the changes needed?
   Improve code quality.
   
   ### Does this PR introduce any user-facing change?
   Yes. We renamed 
`spark.sql.statistics.parallelFileListingInStatsComputation.enabled` to 
`spark.sql.parallelFileListingInCommands.enabled` as a side effect of this 
change.
   
   ### How was this patch tested?
   Pass Jenkins.

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