Upgrading to v1.6
dbt Core v1.6 has three significant areas of focus:
- Next milestone of multi-project deployments: improvements to contracts, groups/access, versions; and building blocks for cross-project
ref
- Semantic layer re-launch: dbt Core and MetricFlow integration
- Mechanisms to support mature deployment at scale (
dbt clone
anddbt retry
)
Resources
What to know before upgrading
dbt Labs is committed to providing backward compatibility for all versions 1.x, with the exception of any changes explicitly mentioned below. If you encounter an error upon upgrading, please let us know by opening an issue.
Behavior changes
Action required if your project defines
metrics
The spec for metrics has changed and now uses MetricFlow.
If your dbt project defines metrics, you must migrate to dbt v1.6 because the YAML spec has moved from dbt_metrics to MetricFlow. Any tests you have won't compile on v1.5 or older.
- dbt Core v1.6 does not support Python 3.7, which reached End Of Life on June 23. Support Python versions are 3.8, 3.9, 3.10, and 3.11.
- As part of the dbt Semantic layer re-launch (in beta), the spec for
metrics
has changed significantly. Refer to the migration guide for more info on how to migrate to the re-launched dbt Semantic Layer. - The manifest schema version is now v10.
- dbt Labs is ending support for Homebrew installation of dbt-core and adapters. See the discussion for more details.
For consumers of dbt artifacts (metadata)
The manifest schema version has been updated to v10
. Specific changes:
- Addition of
semantic_models
and changes tometrics
attributes - Addition of
deprecation_date
as a model property - Addition of
on_configuration_change
as default node configuration (to support materialized views) - Small type changes to
contracts
andconstraints
- Manifest
metadata
includesproject_name
For maintainers of adapter plugins
For more detailed information and to ask questions, please read and comment on the GH discussion: dbt-labs/dbt-core#7958.