Conversation
Raw range-selector inputs are validated like other vector inputs and may not be mixed with installed summary state, which shares no snapshot with an external endpoint. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Planner raw-series input contract of an installed physical program is bound to a RawSource that reads the range selector from the configured Prometheus-compatible endpoint inside the run: lazily, under the request budget and cancellation, with bounded, deterministically ordered rows. Endpoint failures are execution errors. Candidate selection is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Planner can select candidates with an Ephemeral summary lifecycle, where the summary is built at query time. The physical DAG for such a candidate starts from a raw-series
InputContract, and the deployment has to bind that input. The backend has no local raw samples. It could only forward whole PromQL subqueries to Prometheus, and it rejected any rawScanin a deployed plan ("local raw Scan is forbidden").What
data_plane/.../raw_source.rs: a deploymentRawSourcethat reads one range selector ({__name__="m",job="api"}[300000ms], instant query atat - offset) from the configured Prometheus-compatible endpoint (exact_subquery_endpoint, subject to the query-forwarding policy). It is bound through Planner'sDataSources/Scan, which gives lazy open and schema-drift checks.Timestamptime index, a non-nullFloat64valueandUtf8label projections, and the input must beBounded.(end - range, end]window, and anything outside it is an error.RunContext. The request goes throughrequest::wait, so caller cancellation reaches it.Error::Operator, never an empty scan.native_values::execute_stored,engine.rs): aPhysicalroot whose inputs are rawScannodes binds each one as a lazy physical source. It no longer tries to prepare them as exact leaves. The summary store is required only for stored inputs.asap_typesvalidation accepts rawScanvector inputs and rejects plans that mix them with installed state (no common snapshot).Before this PR
An installed
Physicalprogram over a rawScaninput forquantile_over_time(0.5, m{job="api"}[5m])fails in preparation withlocal raw Scan is forbidden in deployed plans.After this PR
The same installed plan, holding Planner's compiled KLL
SummaryAgg→SummaryEstimate(q=0.5)over the raw input, runs end to end. It makes one Prometheus request and returns the exact per-series median (instance=a→ 3,instance=b→ 30).Not in scope
supports_ephemeral: false, and turning it on plus emitting these plans in the control plane is a follow-up.__name__from the raw identity. PromQL name-dropping belongs to the readout.Validation
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --locked -- -D warningscargo test --workspace --locked --lib(data_plane: 898 passed)raw_source.rs:🤖 Generated with Claude Code