feat(cost): select abstract summary window frameworks - #338
Merged
Merged
Conversation
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 3, 2026 16:29
93cdcdc to
4c92e8e
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 3, 2026 16:29
081b7ef to
2845b70
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 3, 2026 16:45
4c92e8e to
2c60c11
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 3, 2026 16:45
2845b70 to
64f0e9a
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 3, 2026 16:50
2c60c11 to
f81669f
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 3, 2026 16:50
64f0e9a to
156ee2e
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 3, 2026 16:57
f81669f to
6f11aaa
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 3, 2026 16:57
156ee2e to
cae4c8c
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 3, 2026 17:05
6f11aaa to
af31303
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 3, 2026 17:05
cae4c8c to
739753e
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 4, 2026 00:50
af31303 to
c1d5718
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 4, 2026 01:04
739753e to
000fe98
Compare
This was referenced Sep 4, 2026
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 4, 2026 02:26
c1d5718 to
6029671
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 4, 2026 02:26
000fe98 to
cb1e2e4
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 4, 2026 03:04
6029671 to
03bda42
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 4, 2026 03:13
cb1e2e4 to
334ac1b
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 4, 2026 03:31
03bda42 to
bccb146
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 4, 2026 03:33
45ea342 to
1d19224
Compare
zzylol
force-pushed
the
refactor/cost-window-boundary
branch
from
September 4, 2026 04:02
bccb146 to
5c4a62d
Compare
zzylol
force-pushed
the
feat/cost-window-framework-selection
branch
from
September 4, 2026 04:02
1d19224 to
48c01f7
Compare
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
Incremental maintenance determines when state changes, but does not determine the abstract window algorithm used to cover and retain the query range. Tumbling, sliding/panes, and exponential histograms have different resource and accuracy behavior and therefore belong in Planner's candidate space.
What
SummaryWindowFrameworkenum withTumbling,Sliding,ExponentialHistogram, and validated extension values.SummaryAggframework assignments to streaming physical candidates.physical_plan_id.physical_plan_id; the latter is provenance and a downstream compilation handle, not planner IR.Correctness rules
SummaryAgghas exactly one assignment; duplicates, omissions, empty extension IDs, and aliases across incompatible framework assignments fail closed.Validation
cargo test --workspacecargo clippy --workspace --all-targets --all-features -- -D warningscargo fmt --all -- --checkStack: depends on #337.
Source organization
The summary-maintenance layer is split into
evidence.rs,estimator.rs,window.rs, andmodel.rs. Window-framework assignment and EH accuracy composition are isolated from resource formulas and lifecycle ranking while reusing the existing workload, lifecycle, and window enums.