Open wolvery opened 2 years ago
@wolvery I ran into this issue as well today. Adding another transform to convert the timestamp to a Long gets around the error. Note that the list order of the transforms
config matters, as the operations are chained.
"transforms": "InsertTimestamp,ConvertTimestamp",
"transforms.InsertTimestamp.type": "org.apache.kafka.connect.transforms.InsertField$Value",
"transforms.InsertTimestamp.timestamp.field": "timestamp"
"transforms.ConvertTimestamp.type": "org.apache.kafka.connect.transforms.TimestampConverter$Value",
"transforms.ConvertTimestamp.field": "timestamp",
"transforms.ConvertTimestamp.target.type": "unix"
NOTE: # The documentation suggests using timestamp field from SMT but the connector does not allow it.
Description
NOTE: # An error message occurs when the event is suppose to be sent
Steps to Reproduce
Sample message:
Error message:
Using the config:
Expected Behaviour
Relevant Logs / Console output
Your Environment
Connector 2.1.0 in docker file
Additional context