min
The least value (the sort order of conventions.md).
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 min, 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": 2
}
],
"fn": "min"
}