Expand description
Pointwise kernels for evaluated series, independent of planning and execution nodes.
Expression column naming and omission of missing points belong to the planner/output adapter; these kernels retain the shared field schema and represent missing grid positions by validity.
ModulesΒ§
- broadcast π
- comparison π
EnumsΒ§
- Arithmetic
Op - Float arithmetic between a vector and a scalar, as in Prometheus.
- Comparison
- Filter keeps the vector value and labels; bool emits 0/1 and drops the metric name.
- Comparison
Op - IEEE comparisons: NaN only satisfies
NotEqual, and signed zeros compare equal. - MathOp
- Float math supported by the evaluated-series kernel.
- Parameterized
Math - A math function whose parameters are scalar expressions, which Prometheus evaluates at every step, with those parameters as time-varying scalars.
- Scalar
Operand - The scalarβs position in a binary expression; noncommutative operators retain this order.
- Scalar
Series Operand - A time-varying, unlabelled single-field scalar, with explicit operand direction.
FunctionsΒ§
- constant_
series - Produces an unlabelled scalar over exactly the requested evaluated range.
- drop_
empty_ πlabels - Drops labels with empty values, which Prometheus treats as absent.
- drop_
metric_ πname - Prometheus
DropReserved(schema.IsMetadataLabel)drops the type and unit labels with the name. Empty values are dropped too: Prometheus has no empty labels, and keeping them would hide a same-labelset collision from the caller. - float_
sample π - A sample of a series accepted by
validate_float_series. - go_max π
- Go
math.Max: +Inf wins over NaN, and +0 over -0. - go_min π
- Go
math.Min: -Inf wins over NaN, and -0 over +0. - is_
float_ πseries - Whether every field of
seriesholds float samples only. - map_
arithmetic - Applies arithmetic against a constant scalar to every field and drops the metric name.
- map_
arithmetic_ πliteral - Applies literal scalar arithmetic to float and histogram samples. Float-only series retain the original kernel unchanged; histogram-capable fields are traversed sample-by-sample.
- map_
arithmetic_ πsegment - Applies one literal scalar operation to one run of samples, reporting whether any histogram position had no answer.
- map_
arithmetic_ series - Applies arithmetic between vector fields and a time-varying scalar, aligned by absolute grid index, and drops the metric name.
- map_
compare_ literal - Compares a vector with a constant scalar, dropping the samples that have no comparison rather than failing the query.
- map_
compare_ series - Compares against a time-varying scalar. Filter keeps vector values and labels; bool emits 0/1 and drops the metric name.
- map_
float_ πfields - map_
float_ πsegment - map_
math - Applies float math to every field of one evaluated series and drops the metric name, like
Prometheusβ
simpleFloatFunc. - map_
math_ with_ parameters - Applies
functionto every field with its parameters read at each point from time-varying scalars, and drops the metric name, ascrate::map::map_mathdoes with constant parameters; native histogram samples are skipped the same way. - map_pi
- Evaluates
pi()without a vector input, preserving the requested short grid range. - map_
samples π - rebuild_
labels π - One rebuild: removing labels one by one copies the label array each time.
- series_
error π - validate_
float_ πseries - Checks an evaluated float series up front, so no segment of another type yields a result.
- validate_
grid_ πseries - Checks
seriesagainstschemaand its evaluation grid, whatever its sample types.