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

Resolve candidate filters for suggestions dynamically #1323

Closed courtneyholcomb closed 1 month ago

courtneyholcomb commented 1 month ago

The new SpecPattern MetricTimeDefaultGranularity requires some inputs that must be resolved at query time, so we can no longer use constants to store the set of candidate filters we use. Here is the logic to resolve them dynamically.