Skip to main content

aggregate_to_rows_in_view

Function aggregate_to_rows_in_view 

Source
pub fn aggregate_to_rows_in_view(
    lmpg: &Lmpg,
    snap: &QuerySnapshot,
    buckets: &[GroupBucket],
    req: &AggregateRequest,
) -> Result<Vec<Value>, QueryError>
Expand description

Shape aggregate buckets using a caller-owned snapshot.

Keeping the view supplied by the caller prevents $collect reconstruction from observing a later commit than the aggregate scan itself.

ยงErrors

Propagates storage/engine read errors while attaching per-root collects.