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
17 changes: 16 additions & 1 deletion website/docs/reference/snapshot-configs.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,22 @@ 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?



nataliefiann marked this conversation as resolved.
Show resolved Hide resolved

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>

</TabItem>
nataliefiann marked this conversation as resolved.
Show resolved Hide resolved

Expand Down
Loading