Skip to content

[core] Preserve timestamp values on changelog retraction records - #9691

Open
junmuz wants to merge 1 commit into
apache:masterfrom
junmuz:feature/preserve-sequence-retract
Open

[core] Preserve timestamp values on changelog retraction records#9691
junmuz wants to merge 1 commit into
apache:masterfrom
junmuz:feature/preserve-sequence-retract

Conversation

@junmuz

@junmuz junmuz commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Purpose

  • Adds a new config option changelog-producer.preserve-sequence-on-retract that accepts a comma-separated list of column names whose values should be taken from the incoming event (rather than the stored row) when producing changelog retraction records (-U, -D)
  • This is useful when delete or update events carry an event timestamp that downstream consumers need — e.g., external systems like Cassandra that rely on WRITETIME for conflict resolution
  • Only supported with the lookup changelog producer

Tests

  • Unit tests for delete retraction preserving the event's sequence field value
  • Unit tests for update retraction (-U) carrying the new event's sequence field value
  • Unit tests confirming original behavior is preserved when the option is not set

@junmuz
junmuz force-pushed the feature/preserve-sequence-retract branch from 56365ee to ba28382 Compare September 8, 2026 14:17
@junmuz junmuz changed the title [core] Preserve sequence field values on changelog retraction records [core] Preserve timestamp values on changelog retraction records Sep 8, 2026
@junmuz
junmuz marked this pull request as ready for review September 8, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant