Repository navigation
refactor(query-engine): split precompute pipeline from build specification - #940
Draft
milindsrivastava1997 wants to merge 2 commits into
Draft
milindsrivastava1997 wants to merge 2 commits into
milindsrivastava1997 wants to merge 2 commits into
Conversation
…ation
PrecomputePipeline<R: SeriesRouting> now owns routing to workers, windows,
watermarks, late-data policy and backpressure; what it builds comes from a
BuildSpec { routing: R, builds: HashMap<u64, Arc<R::Build>> } where each
build is a WindowedBuild. PrecomputeEngine is the pipeline given the
AggregationConfig-based spec (RoutingConfigSet + AggregationConfig).
No behavior change; existing tests change only imports.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014qhwq4jq8TFcKGchhF7Hfb
…ication Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014qhwq4jq8TFcKGchhF7Hfb
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.
Plan step 4 of
.design_docs/asapplanner-engine-boundaries.md(I9), stacked on #938 (step 3), #937 and #936.Change
PrecomputeEngineis split into a generic pipeline and the build specification it is given:The existing engine supplies an
AggregationConfig-based specification. The plan-based one comes in step 8.Only
asap-query-engine/src/precompute_engine/changes (9 files).Suggested review order
build_spec.rs: the seam traitsWindowedBuild,SeriesRoutingandBuildSpec, plus 3 seam tests.aggregation_spec.rs: theAggregationConfig/RoutingConfigSetimplementations. This is mostly existing code moved here, so review it withgit diff --color-moved.worker.rs,series_router.rs: now generic over the spec.pipeline.rs,engine.rs:PrecomputePipeline, andPrecomputeEngineon top of it.The second commit updates
precompute_engine_design_doc.mdto describe the pipeline and the build specification.Log wording (the only user-visible change)
Two worker log messages are now worded generally because the pipeline no longer knows the aggregation type:
Dropping late DeltaSetAggregator sample for evicted pane (..]: ForwardToStore is unsupported for stateful key deltas→Dropping late sample for evicted pane (..]: ForwardToStore is unsupported for agg_id={}Worker {}: failed to finalize DeltaSetAggregator ...→Worker {}: failed to finalize window ...Anything that greps logs for the old strings needs updating.
Verification
After the rebase onto step 3:
cargo fmt --all -- --checkandcargo clippy --workspace --all-targets --all-features --locked -D warningspass.cargo test --workspace --locked: 1549 passed (1546 + 3 new seam tests).🤖 Generated with Claude Code