iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

Kafka Connect: Add delta writer support

Open bryanck opened this issue 2 years ago • 13 comments

Feature Request / Improvement

The initial Kafka Connect sink submission did not include delta writer support that the Tabular version has, as there are performance concerns over relying on equality deletes. We should address those concerns and add back the delta writer support, for features like change data capture and upsert mode.

Query engine

None

Willingness to contribute

  • [X] I can contribute this improvement/feature independently
  • [ ] I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • [ ] I cannot contribute this improvement/feature at this time

bryanck avatar Aug 01 '24 14:08 bryanck

Can we discuss more openly here about the "as there are performance concerns over relying on equality deletes."?

The performance concern is around writing of equality delete from the Kafka connect sink or the reading the equality deletes from the engine side?

ajantha-bhat avatar Aug 01 '24 15:08 ajantha-bhat

The concerns are over relying on equality deletes to apply the deltas, and read performance of equality deletes in general from the engines.

bryanck avatar Aug 01 '24 15:08 bryanck

The concerns are over relying on equality deletes to apply the deltas, and read performance of equality deletes in general from the engines.

This should not be a blocker for having equality deletes written from Kafka connect. If Flink writes it, the same performance concern exist for other engines. So, since equality deletes are already used in production, we should not block it. But what we can do is have a separate ticket to improve equality delete read performance and analyze it. Happy to contribute on that side.

CDC, Tombstone handler, Upsert are is a very important feature for users. Just having append only kafka connect sink may not be very much useful in production. So, I am in favour of brining whatever is there in Tabular repo and improving it on top of it. @danielcweeks, @fqaiser94, @bryanck, @stevenzwu : Thoughts?

ajantha-bhat avatar Aug 02 '24 05:08 ajantha-bhat

+1 adding this feature. maybe it makes sense not to enable it as a default mode,(using append mode as default) so end user activates it when needed. also happy to help.

ismailsimsek avatar Aug 31 '24 12:08 ismailsimsek

This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.

github-actions[bot] avatar Feb 28 '25 00:02 github-actions[bot]

This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'

github-actions[bot] avatar Mar 15 '25 00:03 github-actions[bot]

Are you still considering the possibility of implementing this feature in future versions?

gdanielli avatar Apr 09 '25 19:04 gdanielli

@bryanck Can this issue and the related PR be reopened please? This is essential functionality.

olarcherc24 avatar Apr 10 '25 15:04 olarcherc24

Hi just a question regarding BaseEqualityDeltaWriter: how is this respecting the COW-mode? I see in the source code that a deleteFile is still written although COW is enabled by default

i-doit181 avatar Apr 15 '25 08:04 i-doit181

Discussion thread, https://lists.apache.org/thread/96dhf3sj5pc4ql0l8yk8sxgtr78bchrd

ismailsimsek avatar Sep 10 '25 13:09 ismailsimsek

Hi @ajantha-bhat @bryanck - Just following up further on this - We have been using a fork from tabular repo (unfortunately abandoned now) for our CDC pipeline. It has worked fine for us with a small edge case fix which I mentioned in our earlier discussion here

We have also set up regular maintenance job to compact the data arising from equality deletes.

I want to ask if there is a plan( or any discussion) to support CDC in this connector. If not then what can be a way forward for us. We can support CDC with a flag(which was the case in tabular connector also)

Awaiting your response.

anmol avatar Nov 19 '25 07:11 anmol

This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.

github-actions[bot] avatar May 19 '26 00:05 github-actions[bot]

We are migrating from Flink to KC and really looking for this feature

KulykDmytro avatar Sep 09 '26 07:09 KulykDmytro