Repository navigation
refactor(query-engine): split precompute pipeline from build specification - #940
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
Code reviewNo new correctness bugs found; the split into a generic Pre-existing bugs (in touched code)
Nits 🤖 Generated with Claude Code |
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