在将键属性列存储到Azure SQL DB之前如何添加它?

问题描述

我正在使用Data Factory从Data Lake Storage Gen2移出数据,转换数据,最后我想将数据存储在Azure sql DB中。

如何基于rowNumber()添加具有键属性(bigint)的列?我尝试使用“派生列”功能,但我无法选择功能rowNumber(),因为它仅对窗口转换有效。

谢谢

解决方法

您可以使用Surrogate key transformation in mapping data flow

根据数据的行号创建密钥:

enter image description here

enter image description here