Skip to main content

Module fused_series

Module fused_series 

Source
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§

EvidenceClaim 🔒
EvidenceClaims 🔒
Evidence shared by the output partitions of this plan’s single execution.
FusedEvaluatedChunks 🔒
The tree’s evaluated output, handed over as the chunks a native consumer reads.
FusedEvaluatedStream 🔒
FusedExecution 🔒
One partition’s execution: the tree’s own output, and its state layout when it exports state.
FusedFeed 🔒
One chunk and the source index it belongs to, and what the producer charged it to.
FusedSeries
The logical plan of one node that runs a compiled native tree.
FusedSeriesBinding
The statement grid and output naming that travel with a compiled tree.
FusedSeriesExec
The physical node that runs a compiled native tree over its input’s raw series.
FusedSeriesPayload 🔒
FusedSeriesStream
The batches one execution of FusedSeriesExec yields.
FusedStateChunks 🔒
Exported state, handed over one group at a time as the chunks a Final merges.
FusedStateOutput 🔒
The aggregate state a Partial root exports.
FusedStateStream 🔒
StoredSeriesLabels 🔒
The label facts a per-series scan states about the series below a tree.

Enums§

FieldKind
The sample kind an output field column carries.
FusedChunk 🔒
One chunk a child handed over, in the form the child’s frame declared it in.
FusedInputKind 🔒
What one bound child of this node produces.
FusedOutput 🔒
FusedOutputFormat
The output representation fixed when a fused plan is built.
InputLocality
InputProof 🔒
What the plan below a fused node proves about the series it hands over.
OutputColumn 🔒
Where one output column of FusedSeriesExec comes from.
StateGroup 🔒
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 FusedSeriesStream runs 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 plan states about the series below it, through the wrappers that pass rows on.
ensure_declared_series 🔒
declared is the series layout expected binds, as unpack_aggregate_state checks it.
evaluated_output 🔒
failed 🔒
A failure in the handover’s own error type.
field_column 🔒
Converts one evaluated series field into the column kind names.
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 names name exactly the columns in value_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 node contains 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_fields order.
output_frame_schema 🔒
partitioned_window_sources 🔒
Sources whose evaluated series must be kept together for partitioned windows.
preserves_matching_key 🔒
Whether every operation in node preserves the labels used by matching.
preserves_partition_identity 🔒
Whether every series node emits is one series it read, under labels that still tell it apart.
register_tree_metric 🔒
Registers the tree tree runs as one of the metrics metric holds.
same_fields 🔒
same_source 🔒
The one source every leaf of node reads, 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 source was 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.