你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

array_concat()

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Concatenates many dynamic arrays to a single array.

Syntax

array_concat(arr [, ...])

Learn more about syntax conventions.

Parameters

Name Type Required Description
arr dynamic ✔️ The arrays to concatenate into a dynamic array.

Returns

Returns a dynamic array of all input arrays.

Example

The following example shows concatenated arrays.

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)

Output

Column1
[1,2,4,1,2]
[2,4,8,2,4]
[3,6,12,3,6]