pub fn aggregate_float(
schema: &Arc<SeriesSchema>,
input: &[Series],
op: AggregateOp,
grouping: Grouping<'_>,
) -> Result<Vec<Series>>Expand description
Aggregates each field at each absolute evaluation instant.
Each field is aggregated independently; an output row exists where any field has a value, and a field without input values at that row is null. Ordinary NaNs count as values.
Inputs are folded in slice order. Prometheus folds them in storage postings order, and the
compensated sum/avg depend on that order in the last bits, so callers must keep it.
Groups are returned in the order their first input appears, as in Prometheus: a nested
aggregation folds them in that order.
Evaluated inputs on the shared schema/grid are admitted. An operation that reads a value takes
float samples only; count and group ask whether a sample is present, so they also accept a
histogram. by on a value field needs per-point labels and an output schema adapter, and is
rejected. There is no fallback.