docs: clarify Planner window ownership - #586
Merged
Merged
Conversation
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
The existing planner-integration and physical-planning pages describe parts of
the boundary, but do not give one canonical, executable contract for turning
ASAPPlanner candidates into coordinated runtime plans. The boundary must also
distinguish an abstract primitive choice from its concrete runtime
implementation.
After this PR
One architecture page defines the feedback and compilation boundary:
ASAPPlanner owns abstract summary primitives, including the sketch algorithm,
summary-window framework, and maintenance-lifecycle candidates. Window
frameworks include tumbling, sliding, exponential histogram, and extensible
future alternatives. Incremental maintenance and window framework are
orthogonal: one describes update behavior and the other temporal state
organization.
ASAPQuery-backend enumerates concrete runtime implementations and
configurations for every Planner candidate. It owns physical identities, pane
sizing, state layout, placement, sharding, storage, transmission, and executor
capability checks. It feeds measured or estimated CPU, memory, network,
storage, and scan behavior under the same
DataWorkloadback into Planner'scost model. ASAPCollector validates and executes the resulting compiled
physical plan; it does not redo planning.
TransmissionPlanis a shared typed section; backend precompute and queryrouting are BackendPlan sections. The document also defines:
failure-probability allocation;
remaining MVP work.
Validation
git diff --checkoperatorname/environment macros are absentScope
Documentation only. No runtime types, planner adapter, wire schema, or
deployment behavior changes in this PR.