Skip to content

eval: improve simple legend handling for rewrites#1854

Merged
brharrington merged 2 commits intoNetflix:mainfrom
brharrington:simple-nr
Jan 31, 2026
Merged

eval: improve simple legend handling for rewrites#1854
brharrington merged 2 commits intoNetflix:mainfrom
brharrington:simple-nr

Conversation

@brharrington
Copy link
Copy Markdown
Contributor

Update the simple legend handling to better handle named rewrite use-cases other than average. It will now treat all aggregate functions the same rather than special cases -avg operations. Others will use the display expression for the purpose of determing the legend.

Update the simple legend handling to better handle named
rewrite use-cases other than average. It will now treat all
aggregate functions the same rather than special cases `-avg`
operations. Others will use the display expression for the
purpose of determing the legend.
@brharrington brharrington added this to the 1.8.0 milestone Jan 31, 2026
@brharrington brharrington requested a review from dmuino January 31, 2026 01:33
@dmuino
Copy link
Copy Markdown
Contributor

dmuino commented Jan 31, 2026

LGTM! Thanks for the fix and the guidance.

On our side, I've simplified the ODL macros to just use :dup,NAME,:named-rewrite instead of :dup,:sum,:swap,NAME,:named-rewrite - so the displayExpr and evalExpr are now the same. The
NamedRewrite is only used to tag the operation for detection, not to actually rewrite anything.

With both changes, the SimpleLegends issue is resolved.

@brharrington brharrington merged commit 8181b83 into Netflix:main Jan 31, 2026
5 checks passed
@brharrington brharrington deleted the simple-nr branch January 31, 2026 13:11
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