We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
these two metrics:
- name: cumulative_orders_one_week label: 1 week type: cumulative type_params: measure: order_total window: 1 week
and
- name: cumulative_orders_seven_days label: 7 days type: cumulative type_params: measure: order_total window: 7 days
when we pass in --start-time and --end-time only the one with window 7 days is giving correct SQL generated
--start-time
--end-time
7 days
here's a diff of the two queries, the one on the left is filtering the time frame correctly, the one on the right is ignoring it
Expect 1 week and 7 days windows to behave similarly
dbt jaffle sample
- name: cumulative_orders_one_week label: 1 week type: cumulative type_params: measure: order_total window: 1 week - name: cumulative_orders_seven_days label: 7 days type: cumulative type_params: measure: order_total window: 7 days
run
mf query --metrics cumulative_orders_one_week --group-by metric_time --start-time 2023-11-12 --end-time 2023-11-12 --explain
mf query --metrics cumulative_orders_seven_days --group-by metric_time --start-time 2023-11-12 --end-time 2023-11-12 --explain
No response
- OS: Mac - Python: 3.9.6 - dbt: 1.7.1 - metricflow: 0.203.0
bigquery
Only tested on dbt-bigquery so far!
The text was updated successfully, but these errors were encountered:
log in case it helps metricflow.log
Sorry, something went wrong.
Thanks for the detailed report @ernestoongaro ! I have attached the fix.
tlento
Successfully merging a pull request may close this issue.
Is this a new bug in metricflow?
Current Behavior
these two metrics:
and
when we pass in
--start-time
and--end-time
only the one with window7 days
is giving correct SQL generatedhere's a diff of the two queries, the one on the left is filtering the time frame correctly, the one on the right is ignoring it
Expected Behavior
Expect 1 week and 7 days windows to behave similarly
Steps To Reproduce
dbt jaffle sample
add these two metrics to the bottom of orders.ymlrun
and
Relevant log output
No response
Environment
Which database are you using?
bigquery
Additional Context
Only tested on dbt-bigquery so far!
The text was updated successfully, but these errors were encountered: