加入 Azure 数据工厂的问题

Issue with join in Azure Data Factory

我创建了一个简单的 ADF 管道,它有两个源(S1、S2),并使用 left outer join 将来自这些源的数据存储到 Azure Cosmos DB 接收器中(条件:s1.abc = S2.abc)。在 运行 这条管道之后,我可以看到 S1 的所有列和 S2 的 none 列。这是为什么?请帮助我理解。

I can see all columns from S1 and none of the columns from S2

由于您在问题中提到了左外连接,所以我认为您正在使用数据流 Activity 来传输数据。我在我这边测试过,它对我有用。

首先请查看official document中的左外连接语句:

那请参考我的样例测试:

我有 2 个 csv 文件如下:

我的数据流activity如下,B是join key:

cosmos db 中的输出,左侧流的行没有匹配项,因此右侧流的输出为 NULL: