Add logical converter for Debezium's JSON data type#274
Open
kurtis-ley wants to merge 3 commits into
Open
Conversation
| */ | ||
| public static class JsonConverter extends LogicalTypeConverter { | ||
| /** | ||
| * Create a new ZoneTimestampConverter. |
There was a problem hiding this comment.
to adjust Create a new ZoneTimestampConverter.
|
Hey! Thank you for the work kurtis-ley 🙏 |
|
Would really like to see this added |
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.
When working with Debezium's MongoDB connector, the primary top-level fields (before, after, patch, filter) are wrapped up in the
io.debezium.data.Jsontype. Data serialized with this type is stored as legitimate JSON strings. BigQuery's Storage Write API expects this data to be in this format (https://cloud.google.com/bigquery/docs/write-api#data_type_conversions)Nothing really needs to be done on the conversion side; the primary objective is to map the Debezium and BigQuery data types together to allow the connector to properly manage the BigQuery schema.