[INLONG-6842][Sort] Improve mysql-cdc2.0 to support tables without primary key#6859
Merged
dockerzhang merged 3 commits intoapache:masterfrom Dec 14, 2022
Merged
[INLONG-6842][Sort] Improve mysql-cdc2.0 to support tables without primary key#6859dockerzhang merged 3 commits intoapache:masterfrom
dockerzhang merged 3 commits intoapache:masterfrom
Conversation
…ead for tables without primary key
Contributor
|
manager need to modify. Because manager set |
Member
Author
will submit another pr for manager modification |
gong
approved these changes
Dec 13, 2022
e-mhui
approved these changes
Dec 13, 2022
dockerzhang
approved these changes
Dec 13, 2022
yunqingmoswu
approved these changes
Dec 13, 2022
featzhang
pushed a commit
to featzhang/inlong
that referenced
this pull request
Dec 17, 2022
…imary key (apache#6859) Co-authored-by: stingpeng <stingpeng@tencent.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepare a Pull Request
Motivation
Fixes #6842
Modifications
A minor modification and improvemnt for Dblog : https://netflixtechblog.com/dblog-a-generic-change-data-capture-framework-69351fb9099b
1、remove the constraint in mysql-cdc 2.0 for primary key
2、for those tables which don't contain primary key, split the whole table as a chunk during split stage
3、since there's no need for the MySqlSourceEnumerator to upsert binlog with the snapshot data for a whole table
split , just let the highwatermark equals to the lowwatermark to escape the upsert stage.
Verifying this change
run AllmigrateTest
Documentation