array_concat()array_concat()

将多个动态数组连接到单个数组。Concatenates a number of dynamic arrays to a single array.

语法Syntax

array_concat(arr1[, *arr2*, ...])`array_concat(arr1[, *arr2*, ...])`

参数Arguments

  • arr1...arrN:要连接到动态数组的输入数组。arr1...arrN: Input arrays to be concatenated into a dynamic array. 所有参数都必须是动态数组(请参阅 pack_array)。All arguments must be dynamic arrays (see pack_array).

返回Returns

包含 arr1, arr2, ... , arrN 的数组的动态数组。Dynamic array of arrays with arr1, arr2, ... , arrN.

示例Example

range x from 1 to 3 step 1
| extend y = x * 2
| extend z = y * 2
| extend a1 = pack_array(x,y,z), a2 = pack_array(x, y)
| project array_concat(a1, a2)
Column1Column1
[1,2,4,1,2][1,2,4,1,2]
[2,4,8,2,4][2,4,8,2,4]
[3,6,12,3,6][3,6,12,3,6]