-
Notifications
You must be signed in to change notification settings - Fork 5.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
ddl: Fixed partitioning a non-partitioned table with placement rules (#57560) #57811
ddl: Fixed partitioning a non-partitioned table with placement rules (#57560) #57811
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release-8.5 #57811 +/- ##
================================================
Coverage ? 56.8894%
================================================
Files ? 1770
Lines ? 626744
Branches ? 0
================================================
Hits ? 356551
Misses ? 246050
Partials ? 24143
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bb7133, mjonss, wjhuang2016 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…7560-to-release-8.5
/retest |
This is an automated cherry-pick of #57560
What problem does this PR solve?
Issue Number: close #55705
Problem Summary:
When updating the placement rule bundle, the table ID was included both as the table and the partition id.
What changed and how does it work?
Not adding it as partition id for non-partitioned table (which uses the original table as a single partition, hence the same ID).
Also simplified the bundle handling during schema update / ApplyDiff, by removing logic that:
to
For REORGANIZE PARTITION, there the bundles will be updated twice, first with the intermediate set of partitions (both old and new), so that data copying and index creations on the new partitions will follow the correct policies directly, and then with the final partition set, avoiding having to move the data again when the DDL is done.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.