Certain producers may choose to represent time using unix time.
Avro supports 3 logical types:
timestamp-millis
stores the number of milliseconds from the unix epochtimestamp-micros
stores the number of microseconds from the unix epoch
Currently, the TimestampConverter
only supports the milliseconds precision.
TimestampMicrosConverter
SMT is a modification of TimestampComverter
which use a microseconds as default timestamp precsion rather than milliseconds.
"transforms": "convertEventDate",
"transforms.convertEventDate.type": "com.michelin.kafka.connect.transforms.qlik.replicate.ReplicateTimestampConverter$Value",
"transforms.convertEventDate.field": "event_",
"transforms.convertEventDate.target.type": "Timestamp",
Check the TimestampConverter
documentation.