Hi Harshiga, thanks for your reply. I am still not get any deletes in my sink (SQL), I have selected the below options in change data capture in ADF.
Capture intermediate updates |
Enable this option if you would like to capture the history of changes to items including the intermediate changes between change data capture reads. |
Capture intermediate updates |
Enable this option if you would like to capture the history of changes to items including the intermediate changes between change data capture reads. |
Capture Deletes |
Enable this option to capture user-deleted records and apply them on the Sink. Deletes can't be applied on Azure Data Explorer and Azure Cosmos DB Sinks. |
Eevery time I add or update a record, I can see new row added in sql sink with incremental _ts. When I delete a record in cosmosdb, I do not dee that updated in sql sink
I looked at the below article shared by you and it mention ___usr_opType column in sink, how I can get that column in my sql or blob sink. I also added system generated column option in adf pipeline.
https://learn.microsoft.com/en-us/azure/cosmos-db/get-started-change-data-capture
Value |
Description |
Option |
1 |
UPDATE |
Capture Intermediate updates |
1 |
UPDATE |
Capture Intermediate updates |
2 |
INSERT |
There isn't an option for inserts, it's on by default |
3 |
USER_DELETE |
Capture Deletes |
4 |
TTL_DELETE |
Capture Transactional store TTLs |
If I can get this column, I can identify that record was inserted, deleted or updated. Can you please help us on this how to get this column in ADF pipeline. I tried but I am not getting it. I also tried the pipeline mentioned in the article, but couldn't see usrtype data in delta table.
Regards
Kuldeep Bhati