Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve branch combining logic for AggregateMeasuresNode #1375

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

courtneyholcomb
Copy link
Contributor

There was a TODO in here to improve this logic, and it seemed pretty simple so I snagged it.
Previously, if there were aliases in any metric input measures, we would avoid trying to combine the AggregateMeasuresNodes. The comment clarified that the scenario we were trying to avoid was a case where different measures used the same alias. To make this more specific, I updated the logic to only skip combining nodes if duplicate aliases were found in the input measures.

@cla-bot cla-bot bot added the cla:yes label Aug 21, 2024
@dbt-labs dbt-labs deleted a comment from github-actions bot Aug 21, 2024
@dbt-labs dbt-labs deleted a comment from github-actions bot Aug 21, 2024
@courtneyholcomb courtneyholcomb marked this pull request as ready for review August 21, 2024 18:26
Copy link
Contributor

@tlento tlento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lasso-whynot

@courtneyholcomb courtneyholcomb merged commit ad63f5b into main Aug 22, 2024
15 checks passed
@courtneyholcomb courtneyholcomb deleted the court/agg-measures-combo branch August 22, 2024 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants