Skip to content

Commit

Permalink
yaml snapshot (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
joellabes authored Oct 3, 2024
1 parent 5c7f1b9 commit 7059086
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schemas/latest/dbt_yml_files-latest.json
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,11 @@
"meta": {
"type": "object"
},
"relation": {
"description": "Required when defining your snapshot in YAML instead of using a legacy snapshot block.",
"type": "string",
"default": "source('', '')"
},
"tests": {
"type": "array",
"items": {
Expand Down
8 changes: 8 additions & 0 deletions tests/latest/valid/dbt_yml_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,14 @@ snapshots:
- name: id
description: cool column, eh?

- name: yaml_defined_snapshot
relation: source('jaffle_shop', 'orders')
config:
schema: snapshots
database: analytics
unique_key: id
strategy: timestamp
updated_at: updated_at

# model groups

Expand Down

0 comments on commit 7059086

Please sign in to comment.