How to use pipeline parameters in DF Data Flow, Dataset source options

3.1k Views Asked by At

I've been at this for a day now, trying every variation possible and searching for others solutions. I have a DF pipeline with a few DataBricks notebooks with the end result being saved to blob storage, but needs to be joined with a SQL table in order to update some values. I am using dynamic folder names to pull the blob file which works fine, but when I try the same thing for my SQL query, it doesn't fail, but it doesn't seem to select any records. So how does one use pipeline parameters in a Data Flow SQL query?

Overview of the pipeline:enter image description here

The failing source:enter image description here

My query to use the variable: enter image description here

Finally the results: enter image description here

Any help is greatly appreciated!

1

There are 1 best solutions below

3
On

The Azure SQL database source dataset doesn't work in data flow.

You need to create a pipeline paremeter a data flow parameter, use data flow parameter in the query.

For example:

Create the data flow parameter: enter image description here

Query option:

concat('select * from ', $Category)

enter image description here

Pipeline parameter: enter image description here

Set the Data Flow parameter value from pipeline: enter image description here