简体   繁体   中英

Use pipeline parameters in azure data factory copy pipeline

I have a copy pipeline that reads data from a Netezza table. I use a query to load the rows based on a timestamp, something like

select * from myTable where creationTs > '2019-10-10T00:00:00'

Right now the query contains a hardcoded value for the timestamp, I would like to be able to read that value from the pipeline parameters, so I can re-run for different dates without changing the query. Is it even possible? I tried all sorts of syntaxes, to no avail.

Thank you in advance

Yes, It is possible with pipeline parameters.

  • Create a new pipeline parameter

在此处输入图像描述

  • Access the parameter value with expression like @{pipeline().parameters.arg1}

在此处输入图像描述

  • Every time you hit run/debug, you will be prompted to enter the value for parameters.

  • When automating it with triggers, you may pass the parameter value as part of the triggers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM