feat: support calculated_measures and .all() in YAML config#206
Open
boringdata wants to merge 2 commits intomainfrom
Open
feat: support calculated_measures and .all() in YAML config#206boringdata wants to merge 2 commits intomainfrom
boringdata wants to merge 2 commits intomainfrom
Conversation
Add `calculated_measures` section to YAML schema for derived metrics that reference other measures by name. Expressions are evaluated at runtime against MeasureScope, which also enables `.all()` for percent-of-total window aggregation patterns. Closes #202, closes #115 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Owner
Author
Codex Review SummaryCodex (gpt-5.3-codex) reviewed this PR. The review findings were about proxy fallback code that is not part of this PR (the reviewer's checkout included files from PR #207). This PR only modifies |
boringdata
added a commit
that referenced
this pull request
Mar 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
calculated_measuressection to YAML config for derived metrics that reference other measures by name (Support calculated measures (derived metrics) in YAML #202).all()window aggregations in YAMLcalculated_measuresfor percent-of-total patterns (.all() for window aggregations not supported in YAML #115)Example
Test plan
test_yaml_calculated_measures— calc measures via YAML configtest_yaml_calculated_measures_simple_format— simple string formattest_yaml_all_window_aggregation—.all()percent-of-total in YAML🤖 Generated with Claude Code