Skip to content

Kafka Connect: Add source timestamp to Debezium transform CDC metadata#16772

Open
rick020 wants to merge 1 commit into
apache:mainfrom
rick020:keep-both-timestamps-issue-189
Open

Kafka Connect: Add source timestamp to Debezium transform CDC metadata#16772
rick020 wants to merge 1 commit into
apache:mainfrom
rick020:keep-both-timestamps-issue-189

Conversation

@rick020

@rick020 rick020 commented Jun 11, 2026

Copy link
Copy Markdown

The DebeziumTransform SMT only kept the top-level ts_ms (the time the connector processed the event) as _cdc.ts, dropping the source database commit timestamp (source.ts_ms), which is often the more useful value for tracking creation/update times. This adds it as a new required _cdc.source_ts field so both timestamps are kept, mirroring how _cdc.ts is handled in both the schema and schemaless paths. Tests now assert both timestamps against fixed values, and the Kafka Connect docs are updated to describe the new field.

Resolves the request in databricks/iceberg-kafka-connect#189 (filed against the predecessor repo before the connector was donated to Apache Iceberg).

The DebeziumTransform SMT only kept the top-level ts_ms (the time the
connector processed the event) as _cdc.ts. The source database commit
timestamp (source.ts_ms) was dropped, even though it is often the more
useful value for tracking creation/update times. Add it as a new
optional _cdc.source_ts field so both timestamps are kept.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant