ADF数组变量的上限是多少?

What is the upper limit of ADF array variable?

我发现有一个 activity 调用 附加变量,那么我可以向其中插入多少项?

我找不到关于数据工厂的任何文档。但是,ADF 与 Logic Apps 共享一些 DNA,后者规定数组项的最大数量为 100,000。 Logic Apps Limits - Variables

ForEach Activity的文档中,ForEach最多可以处理100,000个。所以,一个数组ForEach的最大容量是100,000。

The ForEach activity has a maximum batchCount of 50 for parallel processing, and a maximum of 100,000 items.

我们可以使用 range.

创建任意长度的数组

创建管道。添加一个数组类型的变量。添加一个设置变量 activity。将变量的值设置为表达式 @range(1, 100001)。 运行管道。

抛出异常

The function 'range' parameters are out of range: 'count' must be a positive integer no larger than '100000' and the sum of 'start index' and 'count' must be no larger than 2147483647.

果然,将表达式的上限减少到 100000 并没有抛出错误。所以一个数组的最大长度是100,000项。