-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[fix](dynamic partition) fix create too many dynamic partitions #30994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix](dynamic partition) fix create too many dynamic partitions #30994
Conversation
|
Thank you for your contribution to Apache Doris. |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 41152 ms |
TPC-DS: Total hot run time: 188659 ms |
ClickBench: Total hot run time: 31 s |
|
Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G' |
dataroaring
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
wm1581066
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
For dynamic partitions, the expect created partition num = dynamic_partition.end - dynamic_partition.start.
By default, fe limit 500(Config.max_dynamic_partition_num) dynamic partitions.
But if dynamic_partition.start is near int.min_value, the expect create partition num will be overflow and become a negative number. Then check created partition num < Config.max_dynamic_partition_num is ok.
For example: if start = -2147483647 (int.min_value + 1), end = 1, then end - start = -2147483648 < 0
So change the expect create partition num to long to avoid overflow.
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...