Zouxxyy opened a new pull request, #7372: URL: https://github.com/apache/hudi/pull/7372
### Change Logs fix https://issues.apache.org/jira/browse/HUDI-5326 1. Modify the file division strategy in SparkSizeBasedClusteringPlanStrategy (1) Sort fileSlices before dividing, which makes dividing more compact (2) Avoid output clustering group size exceeding `hoodie.clustering.plan.strategy.max.bytes.per.group` 2. Set the maximum size of the file written by clustering to `hoodie.clustering.plan.strategy.max.bytes.per.group` to avoid the generation of small files E.g: Under the new strategy, if we set we set max.bytes.per.group=20, target.file.max.bytes=10, the size of files by clustering will fluctuate around 10, use `target.file.max.bytes` as the threshold will split many small files when size > 10. ### Impact refer to above ### Risk level (write none, low medium or high below) low ### Documentation Update None ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
