count
The number of non-null values.
Flags
| Flag | Value |
|---|---|
| Kind | aggregate |
| Nulls | never null |
| Deterministic | yes |
| Order matters | no |
| Decomposable | yes |
Example
A pipeline from the language's tested corpus that uses count, over the example tables.
from orders
aggregate {n = count(id), lo = min(amount), hi = max(amount), f = fsum(price)} by:{status}In a plan:
{
"args": [
{
"col": 0
}
],
"fn": "count"
}