-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source-mysql: Implicit delete on PK updates
This is fairly straightforward: if the primary key is changed by a CDC update event, then instead of an update document we should capture a synthetic deletion of the old row-state and an insert of the new row-state. Interestingly, since we base the implicit-delete decision on the serialized row key, which is based on the configured key columns of a binding, which typically come from the collection spec, this should work correctly even if the output collection key differs from the source DB primary key. But I haven't tested that, I was just thinking of the obvious weird cases and I think that's accurate.
- Loading branch information
1 parent
f8d04d4
commit c880b40
Showing
3 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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