-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BugFix] fix and refactor logical of inference bucket number #26726
[BugFix] fix and refactor logical of inference bucket number #26726
Conversation
if (base.getTable().isNativeTableOrMaterializedView()) { | ||
OlapTable olapTable = (OlapTable) base.getTable(); | ||
DistributionInfo dist = olapTable.getDefaultDistributionInfo(); | ||
inferredBucketNum = Math.max(inferredBucketNum, dist.getBucketNum()); |
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.
The base table bucket number may be too larger for MV?
If the data can aggregated to 10x times, the bucket number in the base table is not suitable for the MV
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.
i know, but it's better than now
94f6a05
to
83d45c4
Compare
Kudos, SonarCloud Quality Gate passed! |
[FE PR Coverage Check]😍 pass : 22 / 22 (100.00%) file detail
|
@Mergifyio backport branch-3.1 |
✅ Backports have been created
|
1. Unify the bucket number inference code to `Table::inferDistribution` 2. Not change default bucket number, so `show create table` would not display the bucket number if not specified manually (cherry picked from commit c9e9dad) # Conflicts: # test/sql/test_materialized_view/R/test_create # test/sql/test_materialized_view/R/test_show_materialized_view
1. Unify the bucket number inference code to `Table::inferDistribution` 2. Not change default bucket number, so `show create table` would not display the bucket number if not specified manually (cherry picked from commit c9e9dad) # Conflicts: # test/sql/test_materialized_view/R/test_create # test/sql/test_materialized_view/R/test_show_materialized_view
Fixes #issue
Table::inferDistribution
show create table
would not display the bucket number if not specified manuallyWhat type of PR is this:
Checklist:
Bugfix cherry-pick branch check: