bool_and

Whether every non-null value is true.

AggregateDeterministic

Flags

Flag Value
Kind aggregate
Nulls nulls are skipped
Deterministic yes
Order matters no
Decomposable yes

Example

A pipeline from the language's tested corpus that uses bool_and, over the example tables.

Hint
from orders
aggregate {paid = count(id, filter: status == "paid"), big = sum(amount, filter: qty > 5), all_rush = bool_and(rush), any_rush = bool_or(rush)} by:{day}

In a plan:

JSON
{
  "args": [
    {
      "col": 9
    }
  ],
  "fn": "bool_and"
}