sum
The sum; Float64 pairwise over fixed blocks, exact for Int64 and decimals (Decimal128(38, s)).
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 sum, over the example tables.
from orders
aggregate {n = count_all(), rows = count_all(), total = sum(amount), avg = mean(amount)}In a plan:
{
"args": [
{
"col": 2
}
],
"fn": "sum"
}