-
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
table: should not skip when default value is not null #20491
Conversation
the cause of this may from L273 Lines 270 to 276 in 62190f3
when the |
Hi @elvizlai , thanks for your contribution! Would you please add some test cases? |
Unfortunately, we've some failed test cases(https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb_ghpr_check_2/detail/tidb_ghpr_check_2/55626/pipeline/):
The case can be simply reproduced by:
Please notice that the |
PTAL my local test was passed.
|
/run-all-tests |
LGTM |
PTAL @tangenta , @djshow832 |
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
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 |
/run-all-tests |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-3.0 in PR #20532 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #20533 |
What problem does this PR solve?
Issue Number: close #20490
Problem Summary:
When new added column changed from
not null
tonull
, the default value may not correct.Release note