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

KAFKA-13433:JsonConverter's method convertToJson when field is optional with default value and value is null, return default value. #11644

Closed
wants to merge 1 commit into from

Conversation

GOODBOY008
Copy link
Member

Issue is here .

Problem:
JsonConverter's method convertToJson when field is optional with default value and value is null, return default value.
It should return null value.I found this scene when use debezium as cdc source. I create a table with a field (optional with default value), insert into a row with 'null' value, but got default value from debezium, with debug source code I found kafka-connect class 'JsonConverter'.

@GOODBOY008
Copy link
Member Author

@ewencp Please cc.

…al with default value and value is null, return default value.
@GOODBOY008 GOODBOY008 reopened this Oct 22, 2022
@GOODBOY008
Copy link
Member Author

@kkonstantine Please review , If you are available ,Thank you!

@isbee
Copy link

isbee commented Jul 5, 2023

Is anyone watching this? We have same issue. It's sad that it hasn't been reviewed for a year, even though the bugs are obvious.

@GOODBOY008 How are you handling this issue?

@GOODBOY008
Copy link
Member Author

Fixed in #13781 .

@GOODBOY008 GOODBOY008 closed this Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants