Expand description
One node that runs a compiled native tree over raw series.
FusedSeries is the logical half: it holds the PromQL text the tree was compiled from, the
tree itself and the binding its input was compiled against. FusedSeriesExec is the physical
half: it owns one execution of that tree per partition, decodes its input frames into raw
series chunks, and converts evaluated chunks back into batches. An input that is one of our own
in-process operators hands its chunks over instead of frames
(crate::extension_plan::SeriesExecutionPlan), which is the same chunks with no round trip
through a batch. The decision is per input and taken by asking the input
(crate::extension_plan::series_execution_plan): one source can be read in process while
another is decoded from its frames, because each input is either one of ours or it is not. Every
content a native input publishes goes the same way, aggregate state included: a state row is
handed over as the row it is, not left on a frame path of its own.
Both halves show their own compiled tree in EXPLAIN, rendered by NativeTree’s display.
The logical node shows its tree without metrics; the physical node includes each tree node’s
recorded metrics when available. The text is what names the value columns, not a plan line:
neither half echoes the query.
Scope of this layer: the input is a stream of native raw series frames
(raw_series_frame_schema) — one row per
chunk, carrying the series’ encoded key, its finality, its timestamps and its fields, plus the
complete labels when the frame is explicit — with each series’ rows contiguous and its
timestamps ascending, which is what the caller’s [SeriesOrdering] names. The output is one
batch per evaluated chunk, with the statement’s grid timestamps in the declared time column.
Each source contributes exactly one partition per output partition; this node has no internal
gather. Physical planning must normalize global consumers to one partition, and matching locality
requires a verified matching-key router on both operands. Everything the tree cannot do is
rejected when the execution plan is built, not when the first
batch arrives: a tree the native runtime does not execute, a frame whose schema the tree’s input
was not compiled against, or an output schema the conversion cannot classify.
Structs§
- Evidence
Claim 🔒 - Evidence
Claims 🔒 - Evidence shared by the output partitions of this plan’s single execution.
- Fused
Evaluated 🔒Chunks - The tree’s evaluated output, handed over as the chunks a native consumer reads.
- Fused
Evaluated 🔒Stream - Fused
Execution 🔒 - One partition’s execution: the tree’s own output, and its state layout when it exports state.
- Fused
Feed 🔒 - One chunk and the source index it belongs to, and what the producer charged it to.
- Fused
Series - The logical plan of one node that runs a compiled native tree.
- Fused
Series Binding - The statement grid and output naming that travel with a compiled tree.
- Fused
Series Exec - The physical node that runs a compiled native tree over its input’s raw series.
- Fused
Series 🔒Payload - Fused
Series Stream - The batches one execution of
FusedSeriesExecyields. - Fused
State 🔒Chunks - Exported state, handed over one group at a time as the chunks a
Finalmerges. - Fused
State 🔒Output - The aggregate state a
Partialroot exports. - Fused
State 🔒Stream - Stored
Series 🔒Labels - The label facts a per-series scan states about the series below a tree.
Enums§
- Field
Kind - The sample kind an output field column carries.
- Fused
Chunk 🔒 - One chunk a child handed over, in the form the child’s frame declared it in.
- Fused
Input 🔒Kind - What one bound child of this node produces.
- Fused
Output 🔒 - Fused
Output Format - The output representation fixed when a fused plan is built.
- Input
Locality - Input
Proof 🔒 - What the plan below a fused node proves about the series it hands over.
- Output
Column 🔒 - Where one output column of
FusedSeriesExeccomes from. - State
Group 🔒 - How many owners the groups of a state input have to be split across.
Constants§
- FUSED_
SERIES_ 🔒ENVELOPE_ VERSION - Experimental FusedSeries envelope version. The format is not persisted; any incompatible layout change may reset this rather than reserving numbers for unreleased revisions.
- METRIC_
NAME 🔒 - The label a metric name is stored under, which is not a tag column of the input.
- POLL_
BUDGET 🔒 - How many input steps one poll of
FusedSeriesStreamruns before it wakes itself.
Functions§
- bound_
tags_ 🔒cover_ primary_ key - Returns whether the scan’s bound logical tags cover every user-visible primary-key column.
- broadcast_
preserves_ 🔒partition_ identity - Whether a binary node with a source-free scalar on one side keeps every series of its vector side apart.
- canonical_
evaluated_ 🔒local_ prefix - canonical_
histogram 🔒 - One evaluated histogram in the canonical query-time form.
- claim_
evidence 🔒 - classify_
output 🔒 - Classifies every output column, rejecting anything the conversion cannot produce.
- collect_
source_ 🔒schemas - The schemas read by distinct raw sources, in dense source-index order.
- collect_
source_ 🔒schemas_ from_ inputs - complete_
series_ 🔒input - The proof
planstates about the series below it, through the wrappers that pass rows on. - ensure_
declared_ 🔒series declaredis the series layoutexpectedbinds, asunpack_aggregate_statechecks it.- evaluated_
output 🔒 - failed 🔒
- A failure in the handover’s own error type.
- field_
column 🔒 - Converts one evaluated series field into the column
kindnames. - float_
column 🔒 - histogram_
column 🔒 - The native histogram column of one evaluated field.
- in_
process_ 🔒feed - One chunk a native input handed over, as the form this node’s runtime reads that source in.
- input_
locality - is_
value_ 🔒column - Whether a column of this type carries a field’s samples.
- keys_
survive_ metadata_ drop - Whether the storage key of a scan keeps telling its stored series apart once a name-dropping kernel has normalized their labels.
- map_
preserves_ 🔒partition_ identity - Whether a point-wise map keeps every series it reads apart, given what the scan states.
- matching_
operands_ drop_ key - Whether matching operands can be segmented as independent single-source computations and at least one fails to preserve the requested key.
- matching_
site 🔒 - The vector/vector match this tree performs, looking through the pointwise nodes wrapped on top.
- names_
value_ 🔒columns - Whether
namesname exactly the columns invalue_names, one name per column. - native_
tree_ 🔒has_ vector_ binary - Whether the tree has a binary with two vector operands that can produce a duplicate verdict.
- needs_
vector_ 🔒matching - Derives the partition contract from the bound root, not from a physical property registry.
Whether
nodecontains a vector-vector binary, which matches series of the whole vector. - ordering_
satisfies 🔒 - output_
field_ 🔒names - Names the fields in a row schema, in
series_fieldsorder. - output_
frame_ 🔒schema - partitioned_
window_ 🔒sources - Sources whose evaluated series must be kept together for partitioned windows.
- preserves_
matching_ 🔒key - Whether every operation in
nodepreserves the labels used bymatching. - preserves_
partition_ 🔒identity - Whether every series
nodeemits is one series it read, under labels that still tell it apart. - register_
tree_ 🔒metric - Registers the tree
treeruns as one of the metricsmetricholds. - same_
fields 🔒 - same_
source 🔒 - The one source every leaf of
nodereads, when the tree keeps the matching key of that source. - scalar_
root_ 🔒fields - The caller-named value field used by the ordinary row conversion for a label-free scalar.
- series_
frame_ 🔒output_ schema - series_
to_ 🔒record_ batch - Converts one evaluated chunk into one output batch.
- state_
binding_ 🔒of - The aggregate-state binding
sourcewas compiled with. - state_
frame_ 🔒output_ schema - The declaration is the shared schema; group, fields and grid live in the native binding and are checked when a frame is decoded against an expected binding.
- state_
routing 🔒 - The owner count and routing policy required by a Final aggregate and its suffix.
- tree_
source_ fields - Fields read by each distinct raw source in source-index order.
- validate_
binding 🔒 - validate_
physical_ 🔒tree - Validates the tree’s bound inputs and carries the root kind with their schemas.
- validate_
plain_ 🔒output_ schema - Validates a decoded plain-row node’s schema against the tree that produces it.