Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release note for 1.9 / versionless inferring primary key within manifest based on constraints #6217

Merged
merged 24 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
49e0c87
add space
mirnawong1 Oct 1, 2024
b6a7308
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 1, 2024
3e52968
add snapshot rn
mirnawong1 Oct 1, 2024
dcba81a
Update website/docs/docs/dbt-versions/release-notes.md
mirnawong1 Oct 1, 2024
396c170
Update website/docs/docs/dbt-versions/release-notes.md
mirnawong1 Oct 1, 2024
648afc0
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 1, 2024
4ad11d7
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 1, 2024
6de9454
Update release-notes.md
mirnawong1 Oct 1, 2024
4274930
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
1b37fe9
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
0402729
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
776eaf9
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
4e7e1d2
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
9de1420
Merge branch 'current' into add/new-snapshot-spec-main
mirnawong1 Oct 2, 2024
be5a4ba
Merge branch 'current' into add/new-snapshot-spec-main
runleonarun Oct 2, 2024
3b2b654
addign release note
runleonarun Oct 2, 2024
3c06428
Merge branch 'add/new-snapshot-spec-main' into add-primary-key-constr…
runleonarun Oct 2, 2024
ead4c58
Update website/docs/docs/dbt-versions/release-notes.md
runleonarun Oct 2, 2024
8b4a3d1
Update website/docs/docs/dbt-versions/release-notes.md
runleonarun Oct 2, 2024
cbe9d93
Update release-notes.md
runleonarun Oct 2, 2024
1452251
Apply suggestions from code review
runleonarun Oct 2, 2024
6b00185
Update dbt-support.md (#6216)
lgreene27 Oct 2, 2024
6c64251
Merge branch 'current' into add-primary-key-constraints-rn
runleonarun Oct 2, 2024
9f4f25f
Update release-notes.md
runleonarun Oct 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions website/docs/docs/dbt-versions/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ Release notes are grouped by month for both multi-tenant and virtual private clo

## October 2024

- **Enhancement**: In dbt Cloud versionless and Core 1.9, we now infer a model's `primary_key` based on configured data tests and/or constraints within `manifest.json`. The inferred `primary_key` is visible in dbt Explorer. Read about the [order dbt infers columns can be used as primary key of a model](https://github.com/dbt-labs/dbt-core/blob/7940ad5c7858ff11ef100260a372f2f06a86e71f/core/dbt/contracts/graph/nodes.py#L534-L541).
runleonarun marked this conversation as resolved.
Show resolved Hide resolved
- **New**: In dbt Cloud Versionless, [Snapshots](/docs/build/snapshots) have been updated to use YAML configuration files instead of SQL snapshot blocks. This new feature simplifies snapshot management and improves performance, and will soon be released in dbt Core 1.9.
- Who does this affect? New user on Versionless can define snapshots using the new YAML specification. Users upgrading to Versionless who use snapshots can keep their existing configuration or can choose to migrate their snapshot definitions to YAML.
- Users on dbt 1.8 and earlier: No action is needed; existing snapshots will continue to work as before. However, we recommend upgrading to Versionless to take advantage of the new snapshot features.
- **Enhancement**: In dbt Cloud Versionless, snapshots defined in SQL files can now use `config` defined in `schema.yml` YAML files. This update resolves the previous limitation that required snapshot properties to be defined exclusively in `dbt_project.yml` and/or a `config()` block within the SQL file. This enhancement will be included in the upcoming dbt Core v1.9 release.
- **New:** dbt Explorer now includes trust signal icons, which is currently available as a [Preview](/docs/dbt-versions/product-lifecycles#dbt-cloud). Trust signals offer a quick, at-a-glance view of data health when browsing your dbt models in Explorer. These icons indicate whether a model is **Healthy**, **Caution**, **Degraded**, or **Unknown**. For accurate health data, ensure the resource is up-to-date and has had a recent job run. Refer to [Trust signals](/docs/collaborate/explore-projects#trust-signals-for-resources) for more information.
- **New:** Auto exposures are now available in Preview in dbt Cloud. Auto-exposures helps users understand how their models are used in downstream analytics tools to inform investments and reduce incidents. It imports and auto-generates exposures based on Tableau dashboards, with user-defined curation. To learn more, refer to [Auto exposures](/docs/collaborate/auto-exposures).


runleonarun marked this conversation as resolved.
Show resolved Hide resolved
## September 2024

- **New**: Use the new recommended syntax for [defining `foreign_key` constraints](/reference/resource-properties/constraints) using `refs`, available in dbt Cloud Versionless. This will soon be released in dbt Core v1.9. This new syntax will capture dependencies and works across different environments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ A snapshot must have a materialized value of 'snapshot'
This tells you to change your `materialized` config to `snapshot`. But when you make that change, you might encounter an error message saying that certain fields like `dbt_scd_id` are missing. This error happens because, previously, when dbt treated snapshots as tables, it didn't include the necessary [snapshot meta-fields](/docs/build/snapshots#snapshot-meta-fields) in your target table. Since those meta-fields don't exist, dbt correctly identifies that you're trying to create a snapshot in a table that isn't actually a snapshot.

When this happens, you have to start from scratch — re-snapshotting your source data as if it was the first time by dropping your "snapshot" which isn't a real snapshot table. Then dbt snapshot will create a new snapshot and insert the snapshot meta-fields as expected.

runleonarun marked this conversation as resolved.
Show resolved Hide resolved
Loading