Berserk Docs
Aggregate FunctionsStatistical

binary_all_and

Returns the bitwise AND of every non-null value in the group, or null for a group without one.

Syntax

binary_all_and(val)

Parameters

Prop

Type

Returns: long

Syntax

binary_all_and(val)

Parameters

Prop

Type

Returns: int

Examples

Example 1 — AND of four masks

datatable(num:long)[
  4294967295,
  4294963215,
  3489660925,
  4211015679
]
| summarize result = toupper(tohex(binary_all_and(num)))
result (string)
CAFEF00D

On this page