Azure Data Factory Source Dataset value from Parameter

前端 未结 1 1132
情话喂你
情话喂你 2021-01-22 18:41

I have a Dataset in Azure Datafactory backed by a CSV file. I added an additional column in Dataset and want to pass it\'s value from Dataset parameter but value never gets copi

1条回答
  •  深忆病人
    2021-01-22 19:32

    Based on document: Expressions and functions in Azure Data Factory , @dataset().XXX is not supported in Azure Data Factory so far. So, you can't use parameters value as custom column into sink or source with native copy activity directly.

    However, you could adopt below workarounds:

    1.You could create a custom activity and write code to do whatever you need.

    2.You could stage the csv file in a azure data lake, then execute a U-SQL script to read the data from the file and append the new column with the pipeline rundId. Then output it to a new area in the data lake so that the data could be picked up by the rest of your pipeline. To do this, you just need to simply pass a Parameter to U-SQL from ADF. Please refer to the U-SQL Activity.

    In this thread: use adf pipeline parameters as source to sink columns while mapping, the customer used the second way.

    0 讨论(0)
提交回复
热议问题