gpt4 book ai didi

json - 每个避免数组的 Azure 数据工厂

转载 作者:行者123 更新时间:2023-12-03 06:44:51 24 4
gpt4 key购买 nike

我是 ADF 新手,所以这是我面临的挑战。

我有一个 Pipeline,其中包含 LookUp 事件和 ForEach,其中包含 Copy Activity

enter image description here

enter image description here

enter image description here

enter image description here

当我运行此管道时,查找事件的第一个输出如下所示

enter image description here

输出包含 11 个不同的值。从我的角度来看,我只看到 11 条记录需要复制到我的接收器(即 Azure SQL DB)。

ForEach 事件的输入如下所示

enter image description here

在运行管道副本 11 次期间,在我的 sql 数据库中现在有 121 条记录。该数量基于 11 行乘以 11 次迭代。这不是我期望的输出。我只希望我的水槽表中有 11 行。我如何更改此管道才能达到仅 11 行的预期结果?

非常感谢!

最佳答案

为了复制数据,查找事件和复制数据源事件不应具有相同的配置。如果这样指定,重复的行将被复制。我尝试在我的环境中重现相同的内容。

enter image description here

如果源数据中有3条记录,则将复制3次3条记录。

enter image description here

enter image description here

  • 为了避免重复,我们只能使用复制事件将数据从 Source 复制到接收器。

enter image description here

  • 目标表中只有 3 条记录。

enter image description here

关于json - 每个避免数组的 Azure 数据工厂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74197419/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com