You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Konstantine Karantasis (JIRA)" <ji...@apache.org> on 2019/07/22 15:11:00 UTC
[jira] [Updated] (KAFKA-8540) Improve InsertField connect transform
to allow inserting processed timestamp
[ https://issues.apache.org/jira/browse/KAFKA-8540?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konstantine Karantasis updated KAFKA-8540:
------------------------------------------
Labels: needs-kip (was: )
> Improve InsertField connect transform to allow inserting processed timestamp
> ----------------------------------------------------------------------------
>
> Key: KAFKA-8540
> URL: https://issues.apache.org/jira/browse/KAFKA-8540
> Project: Kafka
> Issue Type: Improvement
> Components: KafkaConnect
> Affects Versions: 2.2.1
> Reporter: Khushal Kumthekar
> Priority: Major
> Labels: needs-kip
>
> We have requirement to insert a new field that gets populated with the timestamp when kafka message was processed by the connector.
> There is no such transform currently available. *"InputField"* transform provides *timestamp.field* option but that sets the field value to the timestamp when messaged landed in kafka and not when message was processed by the connector.
> Here is the proposal
> Enhance *InputField* transform to add a new option called *"processedTimestamp.field"* that will allow users to insert new field with value of message processed timestamp as shown in below configuration
> {code:java}
> "transforms": "InsertField",
> "transforms.InsertField.type":"org.apache.kafka.connect.transforms.InsertField$Value",
> "transforms.InsertField.processedTimestamp.field": "field_name"{code}
> here is the potential code block to set this value
> {code:java}
> updatedValue.put(processedTimestampField.name, new Date()); {code}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)