Reputation: 192
I'm working on a ADF v2 pipeline, which copies data from csv blob to Azure SQL database table. For each load I would like to collect source metadata, like source blob name, and save it to a target table as a part of data lineage framework.
My blob source run the following schema:
My destination table run the following schema:
I do not know, how to properly include name of the source in the mapping section of Copy Data activity.
For the moment I have:
What I'm looking for is a way to add extra line to the mapping section, which will samehow bind @item().name to destination column [DwhSourceName]
Thanks for all suggestion on how to achieve this.
Upvotes: 2
Views: 1104
Reputation: 23792
Actually,based on my test,you can specify the dymatic content of column key,but you can't set blob metadata as value of columns in copy data mapping at the pipeline run time. Please see the rules mentioned in this document.
You still need to add the FileName
column in your source data before the copy activity.Maybe you could use Azure Blob Trigger Function to get the blob file name so hat you could add the FileName
column when any data stream into the blob.(Please refer to this case:How Do I get the Name of The inputBlob That Triggered My Azure Function With Python)
Upvotes: 0