Reference the shared SummaryCatalog from execution plans - #537
Merged
Merged
Conversation
zzylol
force-pushed
the
feat/precompute-summary-catalog
branch
from
September 9, 2026 23:04
9b92c18 to
a374c0d
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.
Execution plans previously copied materialization semantics or relied on BackendPlan for cross-validation. This change makes CollectorPlan, PrecomputePlan, and TransmissionPlan reference the same authoritative SummaryCatalog snapshot by schema/version/plan identity and SHA-256 digest. Descriptor tables remain stored once in the enclosing PhysicalPlan.
PrecomputePlan now carries typed per-materialization execution contracts for update mode, placement, state schema, activation/expiry, and retained windows.
validate_against_catalogverifies the snapshot reference and reconstructs expected operator, source, grouping, physical pane, encoding, placement, and lifecycle from the configured materialization. It preserves the distinction between physical pane width and query readout lookback. Collector and transmission validation reject unknown materializations, wrong plan generations, and different catalog snapshots.This also fixes an existing compiler drift where a compatibility projection clamped a 300-second pane to 60 seconds while the state schema still advertised 300 seconds. The schema now describes the executable pane. Legacy serialized plans may omit catalog references during migration, but strict catalog-aware validation rejects them. BackendPlan remains temporarily installed until the runtime protocol migration is complete.
Validation:
Stacked on #536.