Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

Aggregate function model (update / combine / finalize).

DuckDB drives aggregates with per-group state. The worker keeps state in the cross-process FunctionStorage (KV mode), keyed by (execution_id, group_id), because update / combine / finalize can run in different pooled worker processes. States are opaque to the C++ extension — the worker chooses any encoding.

Structs§

AggregateBindParams
Parameters for aggregate_bind.

Constants§

GROUP_COLUMN_NAME
The reserved group-id column prepended to UPDATE input batches.

Traits§

AggregateFunction
An aggregate VGI function.