Skip to content

Accept typed series identity in derived precompute values (review) - #499

Closed
zzylol wants to merge 1 commit into
feat/cms-scaled-totalfrom
fix/typed-precompute-identity
Closed

zzylol wants to merge 1 commit into
feat/cms-scaled-totalfrom
fix/typed-precompute-identity

Conversation

@zzylol

@zzylol zzylol commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #498.

Supersedes #497, which carried the same change against integration/planner-for-backend; GitHub marked #497 merged when its head was incorporated into that branch, but it never reached main. Review this PR instead; #497 stays closed.

Why

Typing PromQL series identity before planning caused derived precompute finalization to reject its logical metadata column.

What

Allow exactly one non-null Utf8 series-identity column in precompute value schemas. The physical population row already retains that identity.

Before this PR

A typed derived summary such as quantile(0.9, sum_over_time(m[1m])) could fail compilation at exact finalization.

After this PR

Finalization and subsequent binary/summary computation preserve identities through the existing $population metadata.

Validation

Recovery/derived-summary regression failed before the fix and passes after. All five precompute population tests pass, including malformed, nullable, and duplicate identity rejection.

🤖 Generated with Claude Code

The physical population row already retains the complete series identity. Validate and admit its logical metadata column instead of rejecting correctly typed derived summaries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zzylol
zzylol force-pushed the feat/cms-scaled-total branch from cc766fe to 112148d Compare September 30, 2026 20:24
@zzylol
zzylol force-pushed the fix/typed-precompute-identity branch from 9243647 to a480a12 Compare September 30, 2026 20:25
@zzylol

zzylol commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Included in the squash merge of #507 into main (79f3587).

@zzylol zzylol closed this Oct 1, 2026
@milindsrivastava1997
milindsrivastava1997 deleted the fix/typed-precompute-identity branch November 4, 2026 16:53
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