-
Notifications
You must be signed in to change notification settings - Fork 288
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
cdc: Support schema for Debezium output protocol #10307
Conversation
Signed-off-by: Wish <[email protected]>
Signed-off-by: Wish <[email protected]>
/retest-required |
@@ -49,7 +49,7 @@ func NewRowEventEncoderBuilder( | |||
case config.ProtocolCraft: | |||
return craft.NewBatchEncoderBuilder(cfg), nil | |||
case config.ProtocolDebezium: | |||
return debezium.NewBatchEncoderBuilder(cfg), nil | |||
return debezium.NewBatchEncoderBuilder(cfg, config.GetGlobalServerConfig().ClusterID), nil |
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 the ticdc's cluster ID, not the upstream TiDB cluster id
@@ -138,6 +141,8 @@ type urlConfig struct { | |||
AvroSchemaRegistry string `form:"schema-registry"` | |||
OnlyOutputUpdatedColumns *bool `form:"only-output-updated-columns"` | |||
ContentCompatible *bool `form:"content-compatible"` | |||
|
|||
DebeziumDisableSchema *bool `form:"debezium-disable-schema"` |
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 add this as a part of changefeed toml configuration, not just a sink uri parameter
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.
I added to replica config, PTAL again, thanks!
/retest-required |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: asddongmen, sdojjy 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:
|
/retest-required |
1 similar comment
/retest-required |
Signed-off-by: Wish <[email protected]>
/retest-required |
What problem does this PR solve?
Issue Number: ref #1799
What is changed and how it works?
Benchmark (with schema):
Benchmark (without schema):
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