TimeStamp Converter for column with NULL values

I am running a Kafka connect source connector (Oracle) with transformation of human readable Date field[dd-MMM-yyyy HH:mm:ss] to Timestamp format[Long].

...
...
"transforms": "ConvertStartDate",
"transforms.ConvertStartDate.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
"transforms.ConvertStartDate.target.type": "Timestamp",
"transforms.ConvertStartDate.field": "START_DATE",
"transforms.ConvertStartDate.format": "dd-MMM-yyyy HH:mm:ss"
...
...

This works fine except when the column [START_DATE] contains null value and the message does not get into the topic.

The issue is discussed in details here.

What is the fix for the issue?

Thanks

Two things to check:

  1. Are you using one of the versions that has the NULL fix in it?
  1. Can you check the schema of the target topic, please? Specifically confirm that START_DATE allows for a NULL value.

Hi
I am using Confluent CCS 6.1.0 which has Kafka version 2.7

It looks like the fix has not been applied to Kafka version 2.7 still now.

The schema has been designed to allow for NULL value.

Selection_002

Thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.