dbt-labs / metricflow

MetricFlow allows you to define, build, and maintain metrics in code.
https://docs.getdbt.com/docs/build/about-metricflow
Other
1.12k stars 92 forks source link

Add `MetricTimeDefaultGranularityPattern` #1322

Closed courtneyholcomb closed 1 month ago

courtneyholcomb commented 1 month ago

Adds a new SpecPattern called MetricTimeDefaultGranularityPattern. This will be used to apply the default_granularity from a queried metric to metric_time if no granularity is specified.

Also includes some related cleanup: