@Dmytro Honcharuk Thanks for the additional information.
I wish I had SAP environment to test this scenario and share with some screenshots but as per my discussion with product team, in the source transformation, ADF process those SAP ODQ fields internally and mark the rows as insert, update, or delete. For multiple update rows, ADF sort/order them and pick the last after image. Essentially, it performs de-duplication of multiple updates in SAP.
The recommendation from product team is to create a new column named, say "row operation" using Derived column (use isUpdate
, isInsert
, isDelete
functions) and set the field value to insert, update, or delete based on mapping dataflow row marker. This allows for sink to have regular data columns + row operation (set to I / U / D).
MS Doc for reference: Expression functions in mapping data flow
You could use the added column in Snowflake to perform final merge.
Hope this info helps.
Please don’t forget to Accept Answer
and Yes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.