Skip to content

Kafka Single Message Transform (SMT) that Converts an Epoch Timestamp to datetime format compatible with Smalldatetime in MSSQL, otherwise it will return null

Notifications You must be signed in to change notification settings

jeffbeagley/kafka-connect-transform

Repository files navigation

EpochtoTimestamp converts Epoch to smalldatetime compatible format, or returns null

This was built to bypass the Null Pointer Exception (NPE) caused by the built in SMT TimeStampConverter when using nullable date fields

How to use in a Kafka Connector Config

"transforms": "epoch_timestamp",
"transforms.epoch_timestamp.type": "com.github.jeffbeagley.kafka.connect.transform.common.EpochtoTimestamp$Value",
"transforms.epoch_timestamp.field": "non_nullable_date",

About

Kafka Single Message Transform (SMT) that Converts an Epoch Timestamp to datetime format compatible with Smalldatetime in MSSQL, otherwise it will return null

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages