Skip to content

feat(metricsql): parse l2_over_time - #9

Merged
zzylol merged 1 commit into
mainfrom
feat/univmon-range-functions
Sep 10, 2026
Merged

feat(metricsql): parse l2_over_time#9
zzylol merged 1 commit into
mainfrom
feat/univmon-range-functions

Conversation

@zzylol

@zzylol zzylol commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

MetricsQL evaluation includes l2_over_time(range-vector), but the shared ProjectASAP parser currently rejects it before Planner lowering can select a UnivMon summary.

This adds the MetricsQL function signature as a matrix-to-vector range reducer and covers its parsed AST alongside the existing distinct_over_time and entropy_over_time extensions.

Before this PR, l2_over_time(metric[5m]) failed at the parser boundary. After this PR, it reaches the Planner frontend, where the separate UnivMon execution work can lower and bind it.

Verification:

  • cargo +1.98.0 fmt -- --check
  • cargo +1.98.0 test parser::parse::tests --lib (14 passed)

This PR only defines syntax and type shape. It does not claim Planner lowering or runtime execution support.

@zzylol
zzylol merged commit 9fede7e into main Sep 10, 2026
2 checks passed
@zzylol
zzylol deleted the feat/univmon-range-functions branch September 10, 2026 21:51
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