Skip to content

Mongo Kafka Connector Single Message Transformations (SMTs) - TimestampConverter for nested fields.

License

Notifications You must be signed in to change notification settings

rahulkg31/mongo-kafka-connect-smt-timestamp-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mongo Kafka Connector SMT - TimestampConverter

Transform the timestamp of a nested field.

Setup

  • Build command mvn clean compile assembly:single.
  • Create a directory in plugin.path.
  • Add the built jar in the directory created.

Configuration

transforms=MyTransform
transforms.MyTransform.type=me.rahul.kafka.connect.smt.TimestampConverterWithNestedField$Value
transforms.MyTransform.field=fieldName
transforms.MyTransform.target.type=Date
transforms.MyTransform.zero2null.enable=false

Use transforms.MyTransform.zero2null.enable=true when you are sending timestamp in primitive type long and it is 0, instead of null.

Requirement

  • Java 1.8+
  • Maven 3

About

Mongo Kafka Connector Single Message Transformations (SMTs) - TimestampConverter for nested fields.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages