Skip to content

Add options to config max limit of partition number and bucket number #582

Closed
2 of 2 issues completed
Closed

Description

@swuferhong

Search before asking

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

Solution

No response

Anything else?

No response

Willingness to contribute

  • I'm willing to submit a PR!

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. caozhen1937 commented on Mar 24, 2025

    @caozhen1937
    Contributor

    @swuferhong , is anyone working for this ticket? If no, please assign this ticket to me.

  2. wuchong commented on Mar 24, 2025

    @wuchong
    Member

    Hi @caozhen1937 could you explain a bit how do you want to support this?

  3. caozhen1937 commented on Mar 29, 2025

    @caozhen1937
    Contributor

    Hi @wuchong sorry for later reply, here is my thougnt:

    For partition

    1. 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'

    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.

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

  4. wuchong commented on Mar 29, 2025

    @wuchong
    Member

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

  5. added this to the v0.7 milestone on Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions