Skip to content

Compile label replacements, histogram branches, and aggregate binary labels - #501

Closed
zzylol wants to merge 1 commit into
feat/handoff-physical-coveragefrom
feat/handoff-label-coverage
Closed

zzylol wants to merge 1 commit into
feat/handoff-physical-coveragefrom
feat/handoff-label-coverage

Conversation

@zzylol

@zzylol zzylol commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #500.

Why

Native Planner execution rejected extra labels on aggregate binary results, classic multi-quantile histograms, aggregation over histogram results, and label_replace.

What

Expand logical and physical binary result schemas for contributed labels; render result identities explicitly. Add native anchored-regex label rewriting and classic histogram-quantile branch concatenation with duplicate checks. Resolve nested aggregate sample values through the existing column resolver.

Before this PR

sum by(job)(a) * on(job) group_left(team) info failed because team was absent from the left schema; sum(histogram_quantile(...)), histogram_quantiles, and label_replace could not execute natively.

After this PR

All these expressions compile, survive plan JSON persistence, and execute through Planner operators. Extra labels and nonmatches are preserved; duplicate output identities and invalid label destinations are rejected.

Validation

Three focused acceptance regressions failed before implementation. All 38 fallback tests pass afterward, including named regex captures, missing sources, empty destinations, grouped or/group_right, and duplicate quantile labels. Full workspace tests, formatting, and all-target workspace clippy pass.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zzylol
zzylol force-pushed the feat/handoff-physical-coverage branch from 7856e25 to f2d8cdd Compare September 30, 2026 20:25
@zzylol
zzylol force-pushed the feat/handoff-label-coverage branch from c32b85a to 9ab8b2c 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 feat/handoff-label-coverage 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