From 0e4f64c87abdde0d9e375c36ff364dac7d0198e9 Mon Sep 17 00:00:00 2001 From: Faith Lierheimer Date: Tue, 24 Sep 2024 18:25:58 +0000 Subject: [PATCH 1/5] beep --- models/staging/stripe/stg_stripe__payments.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 61ede9e..c5af3b5 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -1,10 +1,11 @@ + -- example showing staging model after snapshot select -- ids id as payment_id, orderid as order_id, - + null as column_null, -- descriptions paymentmethod as payment_method, status, From bad408563d5e12ff43444f5ee5998224d63b98a4 Mon Sep 17 00:00:00 2001 From: Faith Lierheimer Date: Thu, 3 Oct 2024 17:15:50 +0000 Subject: [PATCH 2/5] null to three --- models/staging/stripe/stg_stripe__payments.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index c5af3b5..7259214 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -5,7 +5,7 @@ select -- ids id as payment_id, orderid as order_id, - null as column_null, + 3 as three_column, -- descriptions paymentmethod as payment_method, status, From 87801d2f31bfcd064363786aa221a5db39d9d681 Mon Sep 17 00:00:00 2001 From: Faith Lierheimer Date: Sun, 6 Oct 2024 21:30:59 +0000 Subject: [PATCH 3/5] example for training --- models/staging/stripe/_stripe__sources.yml | 7 ++++++- models/staging/stripe/stg_stripe__payments.sql | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/models/staging/stripe/_stripe__sources.yml b/models/staging/stripe/_stripe__sources.yml index 5bb236b..52a8eb9 100644 --- a/models/staging/stripe/_stripe__sources.yml +++ b/models/staging/stripe/_stripe__sources.yml @@ -19,4 +19,9 @@ sources: - name: status data_tests: - accepted_values: - values: ['success', 'fail'] \ No newline at end of file + values: ['success', 'fail'] + - name: amount + data_tests: + - dbt_utils.accepted_range: + min_value: 0 + max_value: 10000 \ No newline at end of file diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 7259214..7f2f4ce 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -6,6 +6,7 @@ select id as payment_id, orderid as order_id, 3 as three_column, + 4 as four_column, -- descriptions paymentmethod as payment_method, status, From 43fbab2e6ded6e6287d0c40cfdb33aae5d838ed1 Mon Sep 17 00:00:00 2001 From: Faith Lierheimer Date: Mon, 7 Oct 2024 22:39:22 +0000 Subject: [PATCH 4/5] it's FIVE --- models/staging/stripe/stg_stripe__payments.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 7f2f4ce..4295bb9 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -7,6 +7,7 @@ select orderid as order_id, 3 as three_column, 4 as four_column, + 5 as five_column, -- descriptions paymentmethod as payment_method, status, From 4fb133c7174a21d578101baea1cbb1b399ee7f9d Mon Sep 17 00:00:00 2001 From: Faith Lierheimer Date: Thu, 10 Oct 2024 22:04:13 +0000 Subject: [PATCH 5/5] beep boop --- models/staging/stripe/stg_stripe__payments.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 4295bb9..28d19f9 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -8,6 +8,7 @@ select 3 as three_column, 4 as four_column, 5 as five_column, + 6 as six_column, -- descriptions paymentmethod as payment_method, status,