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

Anything with commit changes #107

Open
wants to merge 30 commits into
base: qa
Choose a base branch
from
Open
Changes from 8 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b8aac1e
Anything with commit changes
Sep 16, 2024
673b5d1
refactoring snapshot_stg_payments and snapshot_stg_payments to match …
Nov 8, 2024
910cccc
deleting generate schema snapshot--i don't think this is relevant any…
Nov 8, 2024
c11e92d
deleting old orders_line_items snapshot, replacing it with new config…
Nov 8, 2024
080bb94
refactoring example_orders_snapshot into new way
Nov 8, 2024
2c8532a
convert example join snapshot to markdown till better fix avail
Nov 8, 2024
ef2f547
fixing order snapshot
Nov 8, 2024
833d85c
fixing snapshot line items
Nov 8, 2024
281c438
Merge pull request #116 from dbt-labs/feat/snapshots_refactor
faithebear Nov 8, 2024
0fa6002
Merge branch 'main' of https://github.com/dbt-labs/rapid-onboarding-e…
Nov 18, 2024
ba8118a
Commit changes
Nov 18, 2024
6f267b4
Commit changes for tests
Nov 26, 2024
9d6fef6
Added singular test
Nov 26, 2024
08a594f
Commit changes. Added contracts.
Nov 26, 2024
62a15a7
Commit changes; unit test
Nov 27, 2024
5485517
Commit changes for unit test
Nov 28, 2024
2cbb34b
commit changes for unit test
Nov 28, 2024
2624cb3
commit updates
Dec 3, 2024
3b4efda
Update changes
Dec 3, 2024
d84881a
commit changes
Dec 4, 2024
f803d7d
Commit changes
Dec 4, 2024
b76018b
Update changes
Dec 4, 2024
baa0d3f
Update tags
Dec 4, 2024
419f358
commit changes
Dec 5, 2024
961a243
Commit changes
Dec 5, 2024
9bf0cc0
commit changes
Dec 5, 2024
3f36a3a
Commit changes
Dec 5, 2024
60cf779
Commit changes
Dec 5, 2024
03dc3d3
Commit changes
Dec 5, 2024
893fcb9
commit updates
Dec 5, 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
with order_snapshot as (
{# with order_snapshot as (
select
* exclude dbt_valid_to,
coalesce(dbt_valid_to, cast('{{ var("future_proof_date") }}' as timestamp)) as dbt_valid_to
@@ -47,3 +47,4 @@ final as (
)

select * from final
#}
14 changes: 0 additions & 14 deletions snapshots/_samples/example_generate_schema_snapshot.sql

This file was deleted.

14 changes: 0 additions & 14 deletions snapshots/_samples/example_orders_line_items_snapshot.sql

This file was deleted.

14 changes: 0 additions & 14 deletions snapshots/_samples/example_orders_snapshot.sql

This file was deleted.

51 changes: 51 additions & 0 deletions snapshots/jaffle_snapshots.yml
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

22 changes: 0 additions & 22 deletions snapshots/snapshot_int_line_items.sql

This file was deleted.

16 changes: 0 additions & 16 deletions snapshots/snapshot_stg_payments.sql

This file was deleted.

Loading