Skip to content
  • There are no suggestions because the search field is empty.

Understand Dataflow, Dataflow Set and Dataflow Set Model Object

To understand the concepts of Dataflow, Dataflow Set, and Dataflow Set Model Object, let's assume we want to load in a Model Object data from the following SQL statement:

SELECT  AccountNumber, 
        CustomerID, 
        PersonID, 
        StoreID, 
        TerritoryID
FROM    Customer cus
LEFT JOIN    Person per on cus.PersonID = per.PersonID
WHERE     cus.PersonID IS NOT NULL

EXCEPT

SELECT  AccountNumber,
        CustomerID, 
        PersonID, 
        StoreID, 
        TerritoryID
FROM    Customer cus
WHERE     cus.PersonID IN (658,659)

Dataflow

A Dataflow is a loader.

In our example, we can imagine two source applications from which the Model Object data are coming.

We can create 2 Dataflows, so two loaders:

  • 1 to load data daily from a source application A
  • 1 to load similar data every month from a source application B

Dataflow set

A Dataflow Set is a selection of data (SELECT statement).

In our example, there are 2 Dataflow Sets with the Set Operator Except between the 2 Sets:

Dataflow set model object

A Dataflow Set Model Object is a Model Object used in a Dataflow Set.

In our example, there are:

  • 2 Dataflow Set Model Objects in the Dataflow Set 1 with a Join Operator Left Join between the 2 Model Objects
  • 1 Dataflow Set Model Object in the Dataflow Set 2

Dataflows in the generated objects

Each dataflow gets its own source view, which combines the dataflow sets with their set operator, and its own parts up to the loader; their names carry the dataflow name, for example _Dataflow1_Delta. The table, _Result, _Increment and _DataQualityError exist once per model object. The loaders of several dataflows fill the same table in no fixed order, unless Use Sequential Dataflow Execution (Databricks and Fabric Lakehouse) runs them one after another. With an incremental load, the threshold is kept per dataflow set. Generated parts of model objects describes the parts; the legend in the image names the lines and shapes:

The parts of one model object with two dataflows, top to bottom. A, B, C and D are the dataflow model objects. Dataflow1 has two dataflow sets. Set1 joins A and B, Set2 selects from C; _Dataflow1_Source combines the two sets with the set operator of Set2, here UNION ALL. Dataflow2 has one dataflow set, Set1, which selects from D and feeds _Dataflow2_Source. Each dataflow has its own parts with the dataflow name in the generated name, from the source view through the delta view to the loader. Both loaders write into the one table of the model object, and the one result view reads it. Each delta view looks up keys in the stored rows of the whole model object.

Related articles