gavinchou opened a new pull request, #62325: URL: https://github.com/apache/doris/pull/62325
## Summary Pick PR #61576 and #62286 to branch-4.1, combining both changes into one commit. ## Changes Add a new FE config `max_bucket_num_per_partition` to limit the maximum number of buckets when creating a table or adding a partition. Default value is 768. 1. Add `max_bucket_num_per_partition` config in Config.java, defaulting to 768 2. Add bucket number validation in `DistributionDescriptor.validate()` for CREATE TABLE scenario 3. Add bucket number validation in `InternalCatalog.addPartition()` for ALTER TABLE ADD PARTITION scenario 4. Add unit tests for the new validation logic 5. Add regression test configurations ## Behavior - For user-specified buckets (CREATE TABLE / ALTER TABLE ADD PARTITION): if bucket number exceeds this limit, the operation will be rejected with a helpful error message - For auto-bucket feature (Dynamic Partition): bucket number is capped by `autobucket_max_buckets` automatically, no change - Set to 0 or negative value to disable this limit ## Test - [x] FE unit tests passed locally (DistributionDescriptorTest) - [x] FE build passed locally ## Related Issue close #61576 close #62286 -- 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]
