use adf pipeline parameters as source to sink columns while mapping

与世无争的帅哥 提交于 2019-12-20 03:52:13

问题


I have an ADF pipeline with copy activity, I'm copying data from blob storage CSV file to SQL database, this is working as expected. I need to map Name of the CSV file (this coming from pipeline parameters) and save it in the destination table. I'm wondering if there is a way to map parameters to destination columns.


回答1:


Column name can't directly use parameters. But you can use parameter for the whole structure property in dataset and columnMappings property in copy activity. This might be a little tedious as you will need to write the whole structure array and columnMappings on your own and pass them as parameters into pipeline.



来源:https://stackoverflow.com/questions/51760981/use-adf-pipeline-parameters-as-source-to-sink-columns-while-mapping

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!