Skip to content

fix(compiler): thread each ratio component's own population_filter in… - #238

Merged
mischuh merged 1 commit into
mainfrom
fix/ratio-population-filter-components
Jul 22, 2026
Merged

fix(compiler): thread each ratio component's own population_filter in…#238
mischuh merged 1 commit into
mainfrom
fix/ratio-population-filter-components

Conversation

@mischuh

@mischuh mischuh commented Jul 22, 2026

Copy link
Copy Markdown
Owner

…to its leaf

For composable_post_agg metrics (ratio/weighted_avg), _compile_composite only ever read the ratio metric's own population_filter and applied it to both numerator and denominator leaves. A population_filter declared on a component measure itself (e.g. total_repair_cost or damage_count) was silently ignored, so the divisor and dividend were compiled unfiltered.

…to its leaf

For composable_post_agg metrics (ratio/weighted_avg), _compile_composite only ever
read the ratio metric's own population_filter and applied it to both numerator and
denominator leaves. A population_filter declared on a component measure itself
(e.g. total_repair_cost or damage_count) was silently ignored, so the divisor and
dividend were compiled unfiltered.
@mischuh mischuh self-assigned this Jul 22, 2026
@mischuh
mischuh merged commit bc2fd92 into main Jul 22, 2026
5 checks passed
@mischuh mischuh mentioned this pull request Jul 22, 2026
@mischuh
mischuh deleted the fix/ratio-population-filter-components branch July 22, 2026 19:28
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