binary_all_or() (aggregation function)
Learn how to use the binary_all_or() function to aggregate values using the binary OR operation.
Accumulates values using the binary OR operation for each summarization group, or in total if a group isn’t specified.
Syntax
binary_all_or (expr)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| expr | long | ✔️ | The value used for the binary OR calculation. |
Returns
Returns an aggregated value using the binary OR operation over records for each summarization group, or in total if a group isn’t specified.
Example
The following example produces CAFEF00D using binary OR operations:
datatable(num:long)
[
0x88888008,
0x42000000,
0x00767000,
0x00000005,
]
| summarize result = toupper(tohex(binary_all_or(num)))
Output
| result |
|---|
| CAFEF00D |
Related content
- Aggregation function types at a glance
- binary_all_or() (aggregation function)
- binary_all_xor() (aggregation function)
- binary_and()
- binary_or()
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.