We are sending table data from db2 to iidr-cdc to kafka . We have a trouble with format of data in Kafka topic when you see the messages in kafka-avro-console-consumer .
For Db2 columns defined as DEFAULT NULL if their value is null, it looks fine in kafka topic (as key:value) . BUT when the value is not null , it is wrapped in a dictionary .
Example Output if column is -
"Random_key": {
"int": 9088245671
}
Here, the key of that entry is the datatype of the column and the value is column value. --> This kind of output format is undesirable for our application
If the value is actually null and column defined as DEFAULT NULL , it looks fine . Just as expected -
"Random_key": null
How can we make the changes either in IIDR CDC or KAFKA side to always display the message in key:value format , like this - (even if DEFAULT NULL column contains some value in column)
"Random_key": 9088245671
Thanks!