Skip to content

Add logical converter for Debezium's JSON data type#274

Open
kurtis-ley wants to merge 3 commits into
confluentinc:masterfrom
kurtis-ley:feature/debezium-json-data
Open

Add logical converter for Debezium's JSON data type#274
kurtis-ley wants to merge 3 commits into
confluentinc:masterfrom
kurtis-ley:feature/debezium-json-data

Conversation

@kurtis-ley
Copy link
Copy Markdown

When working with Debezium's MongoDB connector, the primary top-level fields (before, after, patch, filter) are wrapped up in the io.debezium.data.Json type. 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.

*/
public static class JsonConverter extends LogicalTypeConverter {
/**
* Create a new ZoneTimestampConverter.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to adjust Create a new ZoneTimestampConverter.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@gmouss
Copy link
Copy Markdown

Hey! Thank you for the work kurtis-ley 🙏
Any news on this ? The change seems quite straightforward but the CI is failing.

@slavab89
Copy link
Copy Markdown

Would really like to see this added
kurtis-ley any chance to refresh this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants