-
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
sink(ticdc): add event key output for debezium #11649
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #11649 +/- ##
================================================
- Coverage 55.2697% 55.1512% -0.1186%
================================================
Files 1001 1001
Lines 136163 136472 +309
================================================
+ Hits 75257 75266 +9
- Misses 55417 55697 +280
- Partials 5489 5509 +20 |
@@ -1,3 +1,5 @@ | |||
-- set sql_mode REAL_AS_FLOAT is necessary |
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.
Why set REAL_AS_FLOAT is neccesary?
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.
Because Debezium treats REAL as a synonym for FLOAT.
tiflow/pkg/sink/codec/debezium/codec.go
Lines 385 to 386 in 45b439b
// https://dev.mysql.com/doc/refman/8.4/en/numeric-types.html | |
// MySQL also treats REAL as a synonym for DOUBLE PRECISION (a nonstandard variation), unless the REAL_AS_FLOAT SQL mode is enabled. |
/retest |
3 similar comments
/retest |
/retest |
/retest |
/retest |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 3AceShowHand, hongyunyan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
/cherry-pick release-8.1 |
Signed-off-by: ti-chi-bot <[email protected]>
@wk989898: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/cherry-pick release-8.1-20250130-v8.1.2 |
@wk989898: new pull request created to branch In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
Signed-off-by: ti-chi-bot <[email protected]>
Signed-off-by: ti-chi-bot <[email protected]>
What problem does this PR solve?
Issue Number: close #11652
What is changed and how it works?
Debezium send event key and event value to kafka. I added event key output to this PR.
Also modify function
SanitizeName
for keeping same with official code.Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note