-
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
*: Reorg part update table #40714
*: Reorg part update table #40714
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/retest |
…nto reorg-part-update-table
@@ -61,6 +61,21 @@ func (h *Handle) HandleDDLEvent(t *util.Event) error { | |||
return err | |||
} | |||
} | |||
case model.ActionReorganizePartition: | |||
for _, def := range t.PartInfo.Definitions { | |||
// TODO: Should we trigger analyze instead of adding 0s? |
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.
What does 'adding 0s' mean?
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.
So this will just write stats as all zeros / empty table/indexes. Preferably I think it should trigger stats on the new partitions, including their indexes as well as update the global stats. And also wait for all this during the DeleteReorganization phase, so stats are up-to-date when going to StatePublic where the stats will be needed.
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
PTAL @wjhuang2016 @tangenta |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 0cb356f
|
What problem does this PR solve?
PR on top of #40543 so looks bigger than it is.
Implementing Reorganize Partition specifics of Update Table (+ updated test)
Issue Number: close #38535
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.