jacktengg opened a new pull request, #69653:
URL: https://github.com/apache/doris/pull/69653

   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: #69353
   
   Problem Summary: Raising autobucket_min_buckets after creating an AUTO RANGE 
partitioned table could leave new partitions below the minimum. The shared 
calculator returned the stored default without applying the current minimum 
when history was absent, empty, or unavailable. It also reused a historical 
bucket count directly when size statistics had not arrived.
   
   Apply the current minimum to automatic default and historical bucket counts 
in the shared calculator used by automatic range and dynamic partitions. Keep 
fixed bucket counts and existing partitions unchanged. Cover the fallback paths 
with unit tests and the configuration change with the original SQL regression.
   
   Resolve the branch-4.2 unit test conflict by using Mockito throughout 
AutoBucketCalculatorTest while retaining its existing test cases.
   
   ### Release note
   
   New automatic range and dynamic partitions respect autobucket_min_buckets 
when reusing defaults or historical bucket counts without size statistics. 
Existing partitions and fixed bucket distributions retain their bucket counts.
   
   ### Check List (For Author)
   
   - Test: Unit Test / Checkstyle
       - run-fe-ut.sh --run 
'org.apache.doris.common.util.AutoBucketCalculatorTest,org.apache.doris.catalog.DynamicPartitionTableTest#testAutoBuckets':
 12 tests passed
       - mvn checkstyle:check -pl fe-core: passed with zero violations
       - SQL regression files preserved from the original PR; SQL regression 
not rerun for this backport
   - Behavior changed: Yes (new automatically bucketed partitions enforce the 
current minimum on fallback paths)
   - Does this need documentation: No (restore the existing minimum-bucket 
configuration semantics)
   
   (cherry picked from commit a1b1cf722fba9526123214c574394c3d885dc973)
   
   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


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