Reputation: 135
I am using Data Factory to shift data from a Data Lake Storage Gen2, transform the data and finally I want to store the data in an Azure SQL DB.
How can I add a column with an key attribute (bigint) based on the rowNumber()? I tried to use the functionality "Derived Column", but I can't choose the function rowNumber() as it is only valid for window transformations.
Thanks
Upvotes: 0
Views: 43
Reputation: 16411
You could use Surrogate key transformation in mapping data flow.
Create the key based the row number of the data:
Upvotes: 1