Skip to main content

compute_aggregate_binary

Function compute_aggregate_binary 

Source
pub fn compute_aggregate_binary(
    op: &str,
    field: &str,
    expr: Option<&SqlExpr>,
    docs: &[&[u8]],
) -> Value
Expand description

Compute an aggregate function over raw MessagePack documents.

Each entry in docs is a complete MessagePack map (the raw bytes from storage). Returns the result as Value — conversion to JSON happens at the response boundary only.