-
Notifications
You must be signed in to change notification settings - Fork 289
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
mounter(ticdc): fix mounter add default value type unsupported #3846
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. |
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.
Rest LGTM
|
||
func testGetDefaultZeroValue(t *testing.T, colAndRess []columnInfoAndResult) { | ||
for _, colAndRes := range colAndRess { | ||
val, _, _, _ := getDefaultOrZeroValue(&colAndRes.ColInfo) |
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.
Better to check the other return values
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.
May need more unit tests also. I will add more in other pr.
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 |
This pull request has been accepted and is ready to merge. Commit hash: 80f59cb
|
Merge canceled because a new commit is pushed. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3855. |
/run-cherry-picker |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3856. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3857. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3858. |
Signed-off-by: ti-chi-bot <[email protected]>
In response to a cherrypick label: new pull request created: #3859. |
…ap#3846) * mounter(ticdc): fix mounter add default value type unsupported close pingcap#3793 * test(mounter(ticdc)): fix unit test panic for enum * comment(mounter(ticdc)): add some return value comment for mounter * test(mounter(ticdc)): fix default value size unmatch error in uts * mounter(ticdc): change comment Co-authored-by: Neil Shen <[email protected]> * test(mounter(ticdc)): close size check temporary * chore(mounter(ticdc)): fix unused lint Co-authored-by: Neil Shen <[email protected]>
close #3793
What problem does this PR solve?
Fix default value unsupported bug cause by amend feature of tidb, related to issue #3793
Amend feature of TiDB:
As for add column DDL, if a DDL occur between a trx, the trx will not redo but commit the old schema data directly, which will cause TiCDC use new schema to parse old schema data.
What is changed and how it works?
After call "getDefaultOrZeroValue", we need to call "formatColVal" to format data from the tidb type to go supported sql type
Check List
Tests
Start 2 transactions:
Code changes
Side effects
Related changes
Release note