-
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: fix admin repair table with range partition expr will parseInt fail (#17982) #17988
ddl: fix admin repair table with range partition expr will parseInt fail (#17982) #17988
Conversation
Signed-off-by: sre-bot <[email protected]>
/run-all-tests |
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
/run-all-tests |
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
/merge |
Sorry @tiancaiamao, you don't have permission to trigger auto merge event on this branch. |
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@sre-bot merge failed. |
/run-all-tests |
@sre-bot merge failed. |
/merge |
/run-all-tests |
cherry-pick #17982 to release-4.0
Signed-off-by: AilinKid [email protected]
What problem does this PR solve?
Issue Number: close part of #17952
Problem Summary: partition expr will parse int fail while create table directly can be successfully
What is changed and how it works?
How it Works:
in function
buildTableInfoWithCheck
checkTableInfoValidWithStmt
should do the constant fold the partition expression firstly,then
checkTableInfoValidExtra
will pass the tableInfo check successfully secondly.while create table logic is different with this
Related changes
Check List
Tests
1: open repair mode and fill the repair list in config.toml
2: use SQL below to test admin repair action will work well rather than occur parseInt error.
Release note