๐ Introduction:
In this post, we will see how to create a generic data pipeline.
๐บ Problem Statement:
Suppose we need to pull data from 5 different tables, we can create 5 copy activities. But what if we need to pull data from 100 different tables, creating 100 copy activities is not a feasible solution. Hence we will create a generic data pipeline using ForEach activity.
๐ญ Steps to create a Generic Data Pipeline:
Create 2 generic data sets, one for the source and the other one for the sink. ๐ฆ
Now create a pipeline with ForEach activity. ๐ฆ
In the ForEach activity create an array that takes the table name as a parameter. ๐ฆ
Now create a copy activity inside the ForEach activity. ๐ฆ
Now in the source data set pass item() as a parameter, this iterates all the tables. ๐ฆ
Repeat the same activity for the sink data set.๐ฆ
Now run the pipeline and all the data are copied successfully. ๐ฆ