Comment Comment by ncruces This is very cool.SQLite uses the "streaming" push/pop/eval API for windowed aggregates.DuckDB implements "segment tree aggregation" by swapping "combine" for "pop".This means I can offer an adapter that turns combinable aggregates into invertible aggregates, in amortized O(1). parent ncruces 16 days ago
SQLite uses the "streaming" push/pop/eval API for windowed aggregates.
DuckDB implements "segment tree aggregation" by swapping "combine" for "pop".
This means I can offer an adapter that turns combinable aggregates into invertible aggregates, in amortized O(1).