Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cdc] Refactor DebeziumRecordParser #2790

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

yuzelin
Copy link
Contributor

@yuzelin yuzelin commented Jan 25, 2024

Purpose

debezium-json with schema should handle type like mysql record parser.
And we should not add a new format, just use 'debezium-json'

This PR is enhancement of #2706

Tests

API and Format

Documentation

@yuzelin yuzelin changed the title [WIP][cdc] Refactor DebeziumRecordParser [cdc] Refactor DebeziumRecordParser Jan 25, 2024
@yuzelin yuzelin requested a review from zhuangchong January 25, 2024 07:28
@yuzelin
Copy link
Contributor Author

yuzelin commented Jan 25, 2024

@MonsterChenzhuo cc

Comment on lines 186 to 188

Map<String, String> recordMap =
JsonSerdeUtil.convertValue(record, new TypeReference<Map<String, String>>() {});
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a risk here. When the data is a complex type (such as array), json parsing will be abnormal.

@yuzelin yuzelin force-pushed the add_more_schema_type branch from 06c3043 to 9d58d71 Compare January 25, 2024 10:25
Copy link
Contributor

@zhuangchong zhuangchong left a comment

Choose a reason for hiding this comment

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

+1

@zhuangchong zhuangchong merged commit b88938d into apache:master Jan 25, 2024
10 checks passed
@yuzelin yuzelin deleted the add_more_schema_type branch January 25, 2024 11:59
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.

2 participants