[GitHub] [kafka] GOODBOY008 opened a new pull request, #11644: KAFKA-13433:JsonConverter's method convertToJson when field is optional with default value and value is null, return default value.

2022-10-21 Thread GitBox


GOODBOY008 opened a new pull request, #11644:
URL: https://github.com/apache/kafka/pull/11644

   Issue is [here](https://issues.apache.org/jira/browse/KAFKA-13433) .
   
   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'.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[GitHub] [kafka] GOODBOY008 opened a new pull request #11644: KAFKA-13433:JsonConverter's method convertToJson when field is optional with default value and value is null, return default value.

2022-01-03 Thread GitBox


GOODBOY008 opened a new pull request #11644:
URL: https://github.com/apache/kafka/pull/11644


   Issue is [here](https://issues.apache.org/jira/browse/KAFKA-13433) .
   
   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'.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org