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

Bug fix: Apply metric_time filters to time spine when needed #1455

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

courtneyholcomb
Copy link
Contributor

@courtneyholcomb courtneyholcomb commented Oct 10, 2024

There is currently a bug where, if you query a join_to_timespine metric with a metric_time filter that is not applied in the group by, you will end up with more rows than expected.
To fix that, we need to apply any metric_time filters to the time spine table before joining that table to the aggregated measure. This needs to happen before the join instead of after because after the join we may not have access to metric_time at the grain needed for the filter. This implements that behavior.

I recommend reviewing by commit.

@cla-bot cla-bot bot added the cla:yes label Oct 10, 2024
@courtneyholcomb courtneyholcomb changed the title Court/ts filter3 Apply metric_time filters to time spine when needed Oct 10, 2024
@courtneyholcomb courtneyholcomb changed the title Apply metric_time filters to time spine when needed Bug fix: Apply metric_time filters to time spine when needed Oct 10, 2024
@courtneyholcomb courtneyholcomb changed the base branch from court/ts-filter2 to main October 10, 2024 15:40
And also simplify / reorganized displayed properties for the node.
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.

1 participant