Hello
We have a framework which reads the CDF logs from the source table and then merges to the target table.
The logic is implemented in such a way that( if there are multiple commit_versions in the source table), a window function is applied to identify the last operation .
The last operation is then used and replicated to the target.
This works as long as Inserts and Updates Operations are done.
In a particular scenario, in order to do an update of a record, the row is first deleted(COMMIT_TYPE=Delete) and then inserted(COMMIT_TYPE=Insert) with changes in the data. Our framework logic is not able to handle this scenario , as it selects only the latest commit_type= INSERT and does not consider the delete commit_type. As this record is already available in the target, therefore the logic does not do anything and completely ignores the record. Due to this reason, we are missing the Updates in the Target Table. Can you suggest ways to fix this issue ?
Thanks in advance for your support.
Best Regards