v0.130.0
Highlights
Introducing query support for dbt metrics!
With this release you can now use MetricFlow to run queries against your dbt metrics config! If you wish to use the MetricFlow toolchain to query your dbt metrics you can now do this with a simple configuration change. To use, reinstall Metricflow with the appropriate dbt package (see below for supported installations) and make sure the following is in your .metricflow/config.yaml
:
model_path: /path/to/dbt/project/root
dbt_repo: true
From there you can use all of Metricflow's tools to query that model!
Our supported installations can be added as follows:
- BigQuery:
pip install metricflow[dbt-bigquery]
- Postgres:
pip install metricflow[dbt-postgres]
- Redshift:
pip install metricflow[dbt-redshift]
- Snowflake:
pip install metricflow[dbt-snowflake]
Packaging changes
- Use of the new dbt integration requires installation of extended package dependencies. These should not be pulled in by default.
- Developers experiencing module not found errors with dbt models will need to run the expanded installation via
poetry install -E dbt-<data_warehouse>
where <data_warehouse> is one of the supported extras noted above.
Added
Updated
- Internal refactor to use the more appropriate MetricReferences as lookup keys in place of MetricSpec classes. (@WilliamDee)