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

Added the snapshot / block displaying new config #6118

Closed
wants to merge 8 commits into from
25 changes: 22 additions & 3 deletions website/docs/reference/snapshot-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,30 @@ snapshots:

<TabItem value="property-yaml">

**Note:** Required snapshot properties _will not_ work when defined in `config` YAML blocks. We recommend that you define these in `dbt_project.yml` or a `config()` block within the snapshot `.sql` file.
nataliefiann marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will still be true for versions before 1.9 - do we want to keep the callout for those earlier versions? Maybe add a recommendation to upgrade?


</TabItem>
<VersionBlock firstVersion="1.9">

nataliefiann marked this conversation as resolved.
Show resolved Hide resolved
<TabItem value="config">
:::info

In [dbt Cloud Versionless](/docs/dbt-versions/upgrade-dbt-version-in-cloud#versionless), the snapshot config can be set in a `schema.yml` file. This feature will also be available in the upcoming dbt Core 1.9 release.

nataliefiann marked this conversation as resolved.
Show resolved Hide resolved
:::

<File name='snapshots/schema.yml'>

```yml

snapshots:
- name: my_snapshot
config:
schema: specific_schema
unique_key: specific_id
strategy: timestamp
updated_at: updated_at
```
</File>

</VersionBlock>

<VersionBlock lastVersion="1.8">

Expand Down
Loading