Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-5524

Can't distinguish between first and last snapshot entry when there is only one

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Optional Optional
    • 2.2-backlog
    • None
    • core-library
    • None
    • False
    • None
    • False

      For the last row of a snapshot, we emit snapshot="last" in the source record. For the first row of a snapshot, we emit snapshot="first". However, these conflict when there is exactly one row. From looking at the code, it seems we just emit "last" there, which might confuse code that relies on knowing when a snapshot starts.

      A similar issue applies to the per-table values.

      Implementation ideas (optional)

      Something like snapshot="only" should be emitted.

            Unassigned Unassigned
            umanwizard Brennan Vincent (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: