Hi everyone,

Recently I face one of the issues with sequence fields that doesn't sequence 
events for late arriving upsets following a deleted event. More details are 
detailed out in this issue ( https://github.com/apache/paimon/issues/11019).

To address this issue, I am thinking of the following approach at a high level.


  1.
Generate tombstones/delete markers as Indexes during compaction for 
lookup/full-compaction changelogs.
  2.
This generation needs to be being a control flag.
  3.
Also, I am inclined to restrict in deduplicate merge-engine.
  4.
During a normal Paimon read, data will be merged with the indexes according to 
sequence fields.
  5.
Iceberg reads won't be impacted as compaction will merge the delete index file.
  6.
This is only going to scoped to primary key tables. There are few things 
related to dynamic buckets that needs to be laid out.

I have experimented with a proof of concept, and things appear to work. I would 
like to hear about thoughts on this from the community.

Thanks,
Muhammad

Reply via email to