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: querying multiple granularities with offset metrics #1054

Merged
merged 10 commits into from
Feb 29, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def test_offset_to_grain_with_single_granularity( # noqa: D
MetricFlowQueryRequest.create_with_random_request_id(
metric_names=["bookings_at_start_of_month"],
group_by_names=["metric_time__day"],
order_by_names=["metric_time__day"],
Copy link
Contributor

Choose a reason for hiding this comment

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

Yay! Thank you!

)
)
assert query_result.result_df is not None, "Unexpected empty result."
Expand All @@ -45,6 +46,7 @@ def test_offset_to_grain_with_multiple_granularities( # noqa: D
MetricFlowQueryRequest.create_with_random_request_id(
metric_names=["bookings_at_start_of_month"],
group_by_names=["metric_time__day", "metric_time__month", "metric_time__year"],
order_by_names=["metric_time__day", "metric_time__month", "metric_time__year"],
)
)
assert query_result.result_df is not None, "Unexpected empty result."
Expand Down
Loading