You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add options to config max limit of partition number and bucket number #582
I searched in the issues and found nothing similar.
Motivation
To support multi partitioned fields or dynamic partition for fluss partitioned tables, we need to prevent a scenario where an excessive number of partitions could give a significant pressure to the server. Therefore, it is necessary to config limits on both the number of partitions and the number of buckets.
Hi @wuchong sorry for later reply, here is my thougnt:
For partition
If dynamic partition is configured, partitions total number is determined when creating the table. These parameters control the total number:
'table.auto-partition.time-unit' = 'YEAR'`
'table.auto-partition.num-precreate' = '5'
'table.auto-partition.num-retention' = '2'
If multi partitioned fields are supported in the future, it can also determine partitions total number based on the number of partitioned fields when creating the table.
Implement 1)Add some validation logic in the TableDescriptorValidation#checkPartition function
2)params: table.auto-partition.num-max
For bucket
Aame as partiton, add some validation logic in the TableDescriptorValidation#checkDistribution function.
@caozhen1937 I separate it into 2 issues. Let's first implement the #687. You can follow the suggested steps in the issue description. Leave comments if you have any problems when implement this feature.
Activity
caozhen1937 commentedon Mar 24, 2025
@swuferhong , is anyone working for this ticket? If no, please assign this ticket to me.
wuchong commentedon Mar 24, 2025
Hi @caozhen1937 could you explain a bit how do you want to support this?
caozhen1937 commentedon Mar 29, 2025
Hi @wuchong sorry for later reply, here is my thougnt:
For partition
If dynamic partition is configured, partitions total number is determined when creating the table. These parameters control the total number:
'table.auto-partition.time-unit' = 'YEAR'`
'table.auto-partition.num-precreate' = '5'
'table.auto-partition.num-retention' = '2'
If multi partitioned fields are supported in the future, it can also determine partitions total number based on the number of partitioned fields when creating the table.
Implement 1)Add some validation logic in the
TableDescriptorValidation#checkPartitionfunction2)params: table.auto-partition.num-max
For bucket
Aame as partiton, add some validation logic in the
TableDescriptorValidation#checkDistributionfunction.wuchong commentedon Mar 29, 2025
@caozhen1937 I separate it into 2 issues. Let's first implement the #687. You can follow the suggested steps in the issue description. Leave comments if you have any problems when implement this feature.
[elixir] chore: Add dialyzer and tighten Fluss.Config setter guards (a…
[elixir] chore: Add dialyzer and tighten Fluss.Config setter guards (#…