Kafka Connect: Add delta writer support
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
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?
The concerns are over relying on equality deletes to apply the deltas, and read performance of equality deletes in general from the engines.
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?
+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.
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.
This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'
Are you still considering the possibility of implementing this feature in future versions?
@bryanck Can this issue and the related PR be reopened please? This is essential functionality.
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
Discussion thread, https://lists.apache.org/thread/96dhf3sj5pc4ql0l8yk8sxgtr78bchrd
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.
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.
We are migrating from Flink to KC and really looking for this feature