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

   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.
   
   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
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


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