forked from debezium/debezium-connector-vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable support for enums during vstream copy phase. There are two reasons that the connector does not handle `enum` for PSDB branches. 1. The upstream debezium-connector-vitess simply does not support `enum` during the VStream copy phase. It tries to cast the row value to an integer, but the value is a string. It seems support for `enum` landed in 2021 debezium#20, and support for snapshots (VStream Copy) landed in 2022 debezium#112, without taking the former into account. This is easily fixed by finding finding the index of the string value in the list of values obtained from `column_type` during the schema discovery phase at the beginning of the VStream. 2. However, this isn't working on some PSDB branches which don't have the fix vitessio/vitess#13045 for this bug vitessio/vitess#12981. Fixable by backporting the bugfix or upgrading those branches. Signed-off-by: Max Englander <[email protected]>
- Loading branch information
1 parent
02bdc73
commit 42ffac8
Showing
3 changed files
with
50 additions
and
0 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