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

binary_all_xor() (aggregation function)

Applies to: ✅ Microsoft FabricAzure Data ExplorerAzure MonitorMicrosoft Sentinel

Accumulates values using the binary XOR operation for each summarization group, or in total if a group is not specified.

Note

This function is used in conjunction with the summarize operator.

Syntax

binary_all_xor (expr)

Learn more about syntax conventions.

Parameters

Name Type Required Description
expr long ✔️ The value used for the binary XOR calculation.

Returns

Returns a value that is aggregated using the binary XOR operation over records for each summarization group, or in total if a group is not specified.

Example

The following example produces CAFEF00D using binary XOR operations:

datatable(num:long)
[
  0x44404440,
  0x1E1E1E1E,
  0x90ABBA09,
  0x000B105A,
]
| summarize result = toupper(tohex(binary_all_xor(num)))

Output

results
CAFEF00D