-
Notifications
You must be signed in to change notification settings - Fork 982
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2646 from dbt-labs/core-1-dot-4
Updates to upgrade guides for 1.4
- Loading branch information
Showing
16 changed files
with
243 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
46 changes: 46 additions & 0 deletions
46
website/docs/guides/migration/versions/04-upgrading-to-v1.4.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
title: "Upgrading to v1.4 (prerelease)" | ||
description: New features and changes in dbt Core v1.4 | ||
--- | ||
### Resources | ||
|
||
- [Changelog](https://github.com/dbt-labs/dbt-core/blob/1.4.latest/CHANGELOG.md) | ||
- [CLI Installation guide](/docs/get-started/installation) | ||
- [Cloud upgrade guide](/docs/dbt-versions/upgrade-core-in-cloud) | ||
|
||
## What to know before upgrading | ||
|
||
dbt Labs is committed to providing backward compatibility for all versions 1.x. If you encounter an error upon upgrading, please let us know by [opening an issue](https://github.com/dbt-labs/dbt-core/issues/new). | ||
|
||
### For consumers of dbt artifacts (metadata) | ||
|
||
The manifest schema version has updated to `v8`. | ||
These changes are relevant for people who: | ||
- parse or analyze the contents of the `manifest.json` file | ||
- have custom code accessing the [`model`](https://docs.getdbt.com/reference/dbt-jinja-functions/model) or [`graph`](https://docs.getdbt.com/reference/dbt-jinja-functions/graph) variables. For example: | ||
|
||
``` | ||
{{ model.root_path }} | ||
``` | ||
|
||
Relevant changes are: | ||
- The `root_path` attribute is removed for all nodes to reduce duplicative information. | ||
- Unused attributes have been removed from seed `nodes`, including `depends_on`, and from `macros`, including `tags`. | ||
- The `unique_id` of docs blocks now start with `doc` for consistency with other resource types. | ||
|
||
## New and changed documentation | ||
|
||
- [Python 3.11](/faqs/Core/install-python-compatibility) was released in October 2022. It is officially supported in dbt-core v1.4, though full support depends also on your data platform adapter plugin. | ||
According to the Python maintainers, "Python 3.11 is between 10-60% faster than Python 3.10." We encourage you to try a `dbt parse` with dbt Core v1.4 + Python 3.11, and compare it to the result of dbt parse on dbt Core v1.3 + Python 3.10. | ||
- Some organizations have security requirements to pull resources only from internal services. To address the need to install packages from hosted environments (such as Artifactory or cloud storage buckets), packages now support [installing from internally hosted tarball URLs](/docs/build/packages#Internally-hosted-tarball-URL). | ||
- The [local_md5](/reference/dbt-jinja-functions/local-md5) context variable is a new Jinja function that calculates an [MD5 hash](https://en.wikipedia.org/wiki/MD5). | ||
- [Exposures](/docs/build/exposures) can now depend on `metrics`. | ||
- [Coming soon] `--favor-state` ([dbt-labs/docs.getdbt.com/issues/2021](https://github.com/dbt-labs/docs.getdbt.com/issues/2021)) | ||
- [Coming soon] `incremental_predicates` ([dbt-labs/docs.getdbt.com/issues/2636](https://github.com/dbt-labs/docs.getdbt.com/issues/2636)) | ||
- [Coming soon] BigQuery: `time_ingestion_partitioning` + `insert_overwrite` ([dbt-labs/docs.getdbt.com/issues/2426](https://github.com/dbt-labs/docs.getdbt.com/issues/2426)) | ||
|
||
|
||
### Updates to Python models | ||
|
||
- [Stored procedures](/docs/build/python-models##Specific-data-platforms) for Python models will be enabled for all dbt + Snowpark Python models starting with the release of dbt Core version 1.4. | ||
|
3 changes: 2 additions & 1 deletion
3
website/docs/guides/migration/versions/05-upgrading-to-v1.3.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
website/docs/guides/migration/versions/06-upgrading-to-v1.2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
website/docs/guides/migration/versions/07-upgrading-to-v1.1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: "local_md5" | ||
id: "local_md5" | ||
--- | ||
|
||
The `local_md5` context variable calculates an [MD5 hash](https://en.wikipedia.org/wiki/MD5) of the given string. The string `local_md5` emphasizes that the hash is calculated _locally_, in the dbt-Jinja context. This variable is typically useful for advanced use cases. For example, when you generate unique identifiers within custom materialization or operational logic, you can either avoid collisions between temporary relations or identify changes by comparing checksums. | ||
|
||
It is different than the `md5` SQL function, supported by many SQL dialects, which runs remotely in the data platform. You want to always use SQL hashing functions when generating <Term id="surrogate-key">surrogate keys</Term>. | ||
|
||
Usage: | ||
```sql | ||
-- source | ||
{%- set value_hash = local_md5("hello world") -%} | ||
'{{ value_hash }}' | ||
|
||
-- compiled | ||
'5eb63bbbe01eeed093cb22bb8f5acdc3' | ||
``` |
Oops, something went wrong.