[英]Azure Data Factory ADF data pipeline to include filename in copy data to sql databse
I'm trying to create a pipeline on Azure data factory.我正在尝试在 Azure 数据工厂上创建管道。 The pipeline pick up a file from azure file store and copies the data to a sql table.
管道从 azure 文件存储中获取一个文件,并将数据复制到 sql 表中。 It works fine using a copy data task, but I want to include the name of the file in a column in the sql table.
它使用复制数据任务工作正常,但我想在 sql 表的列中包含文件名。 Is this possible?
这可能吗?
The Copy activity in Azure Data Factory v2 does have the ability to add extra columns such as variables and filepaths at run time. Azure 数据工厂 v2 中的复制活动确实能够在运行时添加额外的列,例如变量和文件路径。 Use variables like
$$FILEPATH
:使用像
$$FILEPATH
这样的变量:
See the official docs for more info:有关详细信息,请参阅官方文档:
https://learn.microsoft.com/en-us/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy https://learn.microsoft.com/zh-cn/azure/data-factory/copy-activity-overview#add-additional-columns-during-copy
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.