Skip to content

[Infra] Last Value agg support#3

Merged
smith merged 7 commits into
smith:nls/inv-stepsfrom
crespocarlos:pr1-filter-top-metrics-support
Jan 14, 2026
Merged

[Infra] Last Value agg support#3
smith merged 7 commits into
smith:nls/inv-stepsfrom
crespocarlos:pr1-filter-top-metrics-support

Conversation

@crespocarlos
Copy link
Copy Markdown

Summary

image image

smith and others added 7 commits January 8, 2026 15:26
Adds support for filter aggregations that wrap other aggregations like top_metrics.
This enables metrics like last_value that use filter { exists } + top_metrics to work correctly.

Changes:
- Add FilterWithNestedAggRT type for detecting filter aggregations
- Update getValue to recursively handle nested aggregations within filters
- Add extractFirstNumericValue to extract numeric values from top_metrics for non-metadata fields
@crespocarlos crespocarlos changed the base branch from main to nls/inv-steps January 13, 2026 16:33
@smith smith merged commit 17f4b52 into smith:nls/inv-steps Jan 14, 2026
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.

2 participants