alter row transformation

arkiboys 9,691 Reputation points
2022-04-13T07:27:25.987+00:00

Hello,
In dataflow of the ADF, I am using alter row transformation before the sink which is set to use inline sinktype and Delta dataset type.
My goal is for the delta files to have delete as well as upsert.
In sink key columns I have placed all the fields which are part of the key.

Am I doing the right thing to have the correct delete and upserts?
Thank you

My settings are as follows:

Alter Row transformation

192546-image.png

192582-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,603 questions
0 comments No comments
{count} votes

Accepted answer
  1. HimanshuSinha-msft 19,476 Reputation points Microsoft Employee
    2022-04-15T18:44:49.113+00:00

    Hello @arkiboys ,
    Thanks for the question and using MS Q&A platform.

    As we understand the ask here is howe to set the alter rows activity , please do let us know if its not accurate.
    The idea is to have a condition which repords needs to be Upserted or deleted .
    If you cleick on the tool tip it clarifieds the point .
    "Enter an expression to match rows for insert, delete, update, or upsert. Expressions are represented in order of priority, and each row will be marked with the policy corresponding to the first-matching condition."

    Just sharing an example which I have , we are setting the delete operation when the column "column_2: is null .

    193532-image.png

    Please do let me if you have any queries.
    Thanks
    Himanshu


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.