-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/dbt-labs/rapid-onboarding-e…
…xemplar into jk/empty_flag_test
- Loading branch information
Showing
7 changed files
with
53 additions
and
81 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
version: 2 | ||
|
||
snapshots: | ||
# This is a pretty standard snapshot | ||
- name: snapshot_stg_payments | ||
relation: source('stripe', 'payment') | ||
config: | ||
enabled: true | ||
strategy: timestamp | ||
updated_at: _BATCHED_AT | ||
unique_key: ID | ||
persist_docs: | ||
relation: true | ||
columns: true | ||
# Another standard snapshot but this time with a different table. | ||
- name: snapshot_example_orders | ||
relation: ref('example_orders_source_for_snapshot') | ||
config: | ||
enabled: true | ||
strategy: timestamp | ||
updated_at: order_updated_at | ||
unique_key: order_id | ||
persist_docs: | ||
relation: true | ||
columns: true | ||
invalidate_hard_deletes: true | ||
|
||
# This snapshot has the check_cols example | ||
- name: snapshot_int_line_items | ||
relation: ref('int_line_items_amounts_calculated') | ||
config: | ||
enabled: true | ||
strategy: check | ||
check_cols: ['gross_item_sales_amount', 'net_item_sales_amount'] | ||
unique_key: order_item_id | ||
persist_docs: | ||
relation: true | ||
columns: true | ||
# This snapshot has invalidate hard deletes as an example | ||
- name: snapshot_orders_line_items | ||
relation: ref('example_orders_line_items_source_for_snapshot') | ||
config: | ||
enabled: true | ||
strategy: timestamp | ||
unique_key: id | ||
updated_at: order_updated_at | ||
invalidate_hard_deletes: true | ||
persist_docs: | ||
relation: true | ||
columns: true | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.