Skip to content

v0.130.0

Compare
Choose a tag to compare
@tlento tlento released this 19 Oct 20:43
· 1935 commits to main since this release
9d9d10c

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:

  1. BigQuery: pip install metricflow[dbt-bigquery]
  2. Postgres: pip install metricflow[dbt-postgres]
  3. Redshift: pip install metricflow[dbt-redshift]
  4. 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)