Skip to content

Don't validate JSON records against the table schema #47

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

Merged
merged 2 commits into from
Jan 31, 2023

Conversation

genzgd
Copy link
Contributor

@genzgd genzgd commented Jan 31, 2023

JSON records don't normally have to match the table schema. Unknown fields can be ignored (with a setting), and missing fields will use defaults.

@genzgd genzgd requested review from mzitnik and mshustov January 31, 2023 18:18
@genzgd
Copy link
Contributor Author

genzgd commented Jan 31, 2023

I don't understand why this think it has a conflict?

Copy link
Member

@mshustov mshustov left a comment

Choose a reason for hiding this comment

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

@genzgd could you create an issue to add tests later?

@genzgd
Copy link
Contributor Author

genzgd commented Jan 31, 2023

I think we generally need integration tests for this section. Unit tests won't mean much.

@mshustov
Copy link
Member

@genzgd agreed

# Conflicts:
#	src/main/java/com/clickhouse/kafka/connect/sink/db/ClickHouseWriter.java
@genzgd genzgd merged commit 9eba188 into main Jan 31, 2023
@genzgd genzgd deleted the ignore_json_validation branch January 31, 2023 21:33
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