disable rows deduplication if Incremental is attached to a resource with merge
write disposition
#1131
Labels
sprint
Marks group of tasks with core team focus at this moment
Feature description
Incremental will remove duplicating rows (only with the same cursor field value, read the docs) based on content hash or primary key. This is not expected behavior when merge key is present - destination should be allowed to merge changes coming from the new records.
We want to disable "deduplication" in Incremental and expose destination to all the rows from data source.
Are you a dlt user?
Yes, I'm already a dlt user.
Use case
Please see #971 (comment)
Proposed solution
primary_key
of Incremental to()
(disable dedup) when resource has "merge" write disposition. we already propagate resource key to Incremental key so change should be easyapply_hints
changes in the resource (_set_hints
) and if primarywith_hints
marker that is executed during resource execution is able to apply write disposition and disable the deduplicationbind()
the incremental lateRelated issues
No response
The text was updated successfully, but these errors were encountered: