In Data Factory, what is the difference between Conditional Split and Assert? When to use what?

Partha Das 276 Reputation points
2022-10-19T10:04:11.413+00:00

Hi,

In Data Factory, what is the difference between Conditional Split and Assert? When to use what? If you can provide some use cases for that decision making.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
8,518 questions
{count} votes

3 answers

Sort by: Most helpful
  1. MarkKromer-MSFT 5,176 Reputation points Microsoft Employee
    2022-10-19T19:08:58.127+00:00

    Conditional split is really just a case / switch / if-then-else construct whereas Assert is for data quality rules, with the built-in capability to set expectations, set quality rules, and set rows as error rows.

    0 comments No comments

  2. ShaktiSingh-MSFT 11,136 Reputation points Microsoft Employee
    2022-10-21T07:41:19.51+00:00

    Hi @Partha Das ,

    Thanks for posting this question in Microsoft Q&A platform.

    In addition to @MarkKromer-MSFT 's reply, you may refer to the official Microsoft documentation page for Conditional Split and Assert transformations as well as the videos demonstrating the same as below:

    Assert in Data Flow

    Conditional Split in Data Flow

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • 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

  3. ShaikMaheer-MSFT 35,796 Reputation points Microsoft Employee
    2022-10-26T10:23:17.643+00:00

    Hi @Partha Das ,

    Conditional split transformation can be used when you want to split incoming rows as separate streams based on conditions and process them accordingly. Whereas Assert Transformation can be used when you want to perform data validation on the incoming rows.

    Let's assume you have employee data coming in with different department Ids and want to split those rows based on departments and process each department related rows separately and load them into different tables. In this case you can use conditional split transformation. Please check below video where with an example I explained about conditional split transformation.
    Conditional Split Transformation in Mapping Data Flow in Azure data factory

    Let's assume if you want to validate incoming rows and check for data quality you can consider using assert transformation. In below video, I explain usage of assert transformation with some examples for better understanding. Kindly check same.
    Assert Transformation in Mapping Data Flows in Azure Data Factory

    Hope this helps. Please let me know if any further queries.

    ----------------

    Please consider hitting Accept Answer and Up-Vote. Accepted answers help community as well.