use adf pipeline parameters as source to sink columns while mapping

前端 未结 2 1469
时光说笑
时光说笑 2021-01-24 16:40

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 co

相关标签:
2条回答
  • 2021-01-24 16:55

    In DF v2 in Copy Data activity, it is possible to add a new column to the source with value $$FILEPATH, and then each record will have a name of the input file.

    Azure DF v2, CopyData activity -> Source

    0 讨论(0)
  • 2021-01-24 17:12

    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.

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