-
Notifications
You must be signed in to change notification settings - Fork 5.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
planner, ddl: fix hash partition with adding new column #39574
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. |
@@ -288,7 +288,8 @@ func (s *partitionProcessor) pruneHashPartition(ctx sessionctx.Context, tbl tabl | |||
// please see https://github.com/pingcap/tidb/issues/22635 for more details. | |||
func (s *partitionProcessor) reconstructTableColNames(ds *DataSource) ([]*types.FieldName, error) { | |||
names := make([]*types.FieldName, 0, len(ds.TblCols)) | |||
colsInfo := ds.table.FullHiddenColsAndVisibleCols() | |||
// Use DeletableCols to get all the columns. | |||
colsInfo := ds.table.DeletableCols() |
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.
How about the other partition types?
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.
It's used only by hash partition.
/run-build |
tk2 := testkit.NewTestKit(t, store) | ||
tk2.MustExec("use test") | ||
tk2.MustExec("delete from t") |
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.
Please use a variable to receive the error and assert it out of the hook. Otherwise, the test may timeout even if the assertion failed.
/merge |
This pull request has been accepted and is ready to merge. Commit hash: a2c90db
|
/merge |
In response to a cherrypick label: new pull request created: #39588. |
In response to a cherrypick label: new pull request created: #39589. |
In response to a cherrypick label: new pull request created: #39590. |
In response to a cherrypick label: new pull request created: #39591. |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
TiDB MergeCI notify🔴 Bad News! [3] CI still failing after this pr merged.
|
Signed-off-by: wjhuang2016 huangwenjun1997@gmail.com
What problem does this PR solve?
Issue Number: ref #39570
Problem Summary:
colsInfo used FullHiddenColsAndVisibleCols and can get the writeOnly/writeReorg column, result in
information of column
new columnis not found
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.