Skip to main content

Module extremum

Module extremum 

Source
Expand description

PromQL min and max aggregation operators.

PromQL ignores NaN samples unless every sample of a group is NaN. DataFusion’s min/max order NaN differently depending on the code path (its grouped accumulator lets NaN replace the current value and be replaced by the next one), so the result depends on the order of the input.

Structs§

Extremum
max or min with PromQL NaN semantics.
ExtremumAccumulator 🔒

Functions§

fold 🔒
Folds value into current like Prometheus’ aggregation: a NaN is replaced by any sample, and a NaN sample never replaces a number.
groups_accumulator 🔒