-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Enhancement] Make default bucket num at least 16 when table is unpartitioned #47005
[Enhancement] Make default bucket num at least 16 when table is unpartitioned #47005
Conversation
8bfa330
to
55c369a
Compare
@@ -383,6 +383,10 @@ public static int calAvgBucketNumOfRecentPartitions(OlapTable olapTable, int rec | |||
int bucketNum = 0; | |||
if (olapTable.getPartitions().size() < recentPartitionNum || !enableAutoTabletDistribution) { | |||
bucketNum = CatalogUtils.calBucketNumAccordingToBackends(); | |||
// If table is not partitioned, the bucketNum should be at least 16 | |||
if (!olapTable.getPartitionInfo().isPartitioned()) { | |||
bucketNum = bucketNum > 16 ? bucketNum : 16; |
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.
define a variable in FeConstants
?
55c369a
to
3d88d0c
Compare
…titioned Signed-off-by: meegoo <[email protected]>
3d88d0c
to
742230d
Compare
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]✅ pass : 3 / 3 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
@Mergifyio backport branch-3.2 |
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
✅ Backports have been created
|
✅ Backports have been created
|
…titioned (#47005) Signed-off-by: meegoo <[email protected]> (cherry picked from commit 2176e83) # Conflicts: # fe/fe-core/src/test/java/com/starrocks/analysis/CTASAutoTabletTest.java
…titioned (#47005) Signed-off-by: meegoo <[email protected]> (cherry picked from commit 2176e83)
…titioned (#47005) Signed-off-by: meegoo <[email protected]> (cherry picked from commit 2176e83) # Conflicts: # fe/fe-core/src/test/java/com/starrocks/analysis/CTASAutoTabletTest.java
…titioned (backport #47005) (#47103) Signed-off-by: meegoo <[email protected]> Co-authored-by: meegoo <[email protected]>
…titioned (backport #47005) (#47104) Co-authored-by: meegoo <[email protected]>
…titioned (backport #47005) (#47105) Signed-off-by: meegoo <[email protected]> Co-authored-by: meegoo <[email protected]>
Why I'm doing:
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: