Skip to content

feat: retain selected SQL DAGs in installed precompute plans - #618

Merged
zzylol merged 17 commits into
mainfrom
feat/clickhouse-auto-materialization
Sep 11, 2026
Merged

zzylol merged 17 commits into
mainfrom
feat/clickhouse-auto-materialization

Conversation

@zzylol

@zzylol zzylol commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

SQL publication previously retained materialization configs and QueryPlan nodes but discarded the selected Planner semantic DAG. Preserve that DAG in PrecomputePlan with the actual materialization and query-node bindings recorded during relational lowering.

PromQL and SQL now use one backend placement builder. Planner node IDs remain separate from summary and query identities; publication retains maintenance inputs, exact subtree boundaries, and the installed query sink. Remove an unused descriptor-copy pass because catalog validation already checks those bindings.

Validation: all 719 control-plane library tests pass, including the SQL mapping assertions. The real ClickHouse mixed process E2E passes after atomic installation, filtered backfill, summary readout, and exact-branch composition (1.43 s). Automatic materialization construction and full workload acceleration remain follow-up work; this change makes no performance claim.

Stacked on #614 for typed SQL source/population/time binding.

@zzylol
zzylol changed the base branch from feat/clickhouse-table-population to main September 11, 2026 00:58
@zzylol
zzylol merged commit 48ffb77 into main Sep 11, 2026
1 check passed
@zzylol
zzylol deleted the feat/clickhouse-auto-materialization branch September 21, 2026 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant