hguerrero opened a new issue #738:
URL: https://github.com/apache/camel-kafka-connector/issues/738


   The connectors like the Timer one, are missing the information regarding 
Timestamp. So, when trying to use a transformation like InsertField 
`timestamp.field` it won't work as the information is missing.
   
   Example:
   
   ```
   {
       "name": "timer",
       "config": {
           "connector.class": 
"org.apache.camel.kafkaconnector.timer.CamelTimerSourceConnector",
           "topics": "camel.timer.1",
           "camel.source.path.timerName": "timer",
           "key.converter": "org.apache.kafka.connect.storage.StringConverter",
           "value.converter": "org.apache.kafka.connect.json.JsonConverter",
           "value.converter.schemas.enable": "false",
           "tasks.max": "1",
           "transforms": "HoistField,InsertField",
           "transforms.HoistField.type": 
"org.apache.kafka.connect.transforms.HoistField$Value",
           "transforms.HoistField.field": "timer",
           "transforms.InsertField.type": 
"org.apache.kafka.connect.transforms.InsertField$Value",
           "transforms.InsertField.timestamp.field": "ts"
       }
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to