From aa1e2fa1a7c8951265234d5d36d3e19581ed4167 Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 18:20:22 +0000 Subject: [PATCH 1/7] adding space and creating fake id --- models/staging/stripe/stg_stripe__payments.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 61ede9e5..0d3bcf3e 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -4,7 +4,7 @@ select -- ids id as payment_id, orderid as order_id, - + "1" as new_id, -- descriptions paymentmethod as payment_method, status, @@ -16,3 +16,6 @@ select from {{ ref('snapshot_stg_payments') }} -- pull only the most recent update for each unique record where dbt_valid_to is null + + + From 9aa181f62a5fd760f1488299037bb85fa298a51c Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 18:21:53 +0000 Subject: [PATCH 2/7] space --- models/staging/stripe/stg_stripe__payments.sql | 1 - 1 file changed, 1 deletion(-) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 0d3bcf3e..53379573 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -4,7 +4,6 @@ select -- ids id as payment_id, orderid as order_id, - "1" as new_id, -- descriptions paymentmethod as payment_method, status, From 072501076a64b934aaa4ae9e99fcbb3a19e59211 Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 18:25:00 +0000 Subject: [PATCH 3/7] testing --- models/staging/stripe/stg_stripe__payments.sql | 3 --- 1 file changed, 3 deletions(-) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 53379573..224130a7 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -15,6 +15,3 @@ select from {{ ref('snapshot_stg_payments') }} -- pull only the most recent update for each unique record where dbt_valid_to is null - - - From 7a4c48d1b8ac02f9248ae3bdad3f8b958e244615 Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 19:57:51 +0000 Subject: [PATCH 4/7] test out compile with state modified and advanced ci --- models/marts/finance/fct_orders.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/models/marts/finance/fct_orders.sql b/models/marts/finance/fct_orders.sql index 3fcc62ae..ca3b7f96 100644 --- a/models/marts/finance/fct_orders.sql +++ b/models/marts/finance/fct_orders.sql @@ -23,7 +23,7 @@ final as ( ship_priority, 1 as order_count, - sum(gross_item_sales_amount) as gross_item_sales_amount, + sum(gross_item_sales_amount) + 200 as gross_item_sales_amount, sum(item_discount_amount) as item_discount_amount, sum(item_tax_amount) as item_tax_amount, sum(net_item_sales_amount) as net_item_sales_amount @@ -34,4 +34,5 @@ final as ( ) select * from final -order by order_date \ No newline at end of file +order by order_date + From 9dbe1fa021bcb21c8533f9959a055ff4b26bf3b5 Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 20:03:01 +0000 Subject: [PATCH 5/7] testing --- models/marts/finance/_finance__models.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/models/marts/finance/_finance__models.yml b/models/marts/finance/_finance__models.yml index 8408fa6d..16d8b92d 100644 --- a/models/marts/finance/_finance__models.yml +++ b/models/marts/finance/_finance__models.yml @@ -12,9 +12,9 @@ models: columns: - name: order_item_id description: '{{ doc("order_item_id") }}' - data_tests: - - unique - - not_null + # data_tests: + # - unique + # - not_null - name: order_id description: foreign id for orders - name: order_date @@ -69,16 +69,16 @@ models: columns: - name: order_id description: primary id of the model - data_tests: - - unique - - not_null + # data_tests: + # - unique + # - not_null - name: customer_id description: foreign id for customers - data_tests: - - relationships: - to: ref('dim_customers') - field: customer_id - severity: error + # data_tests: + # - relationships: + # to: ref('dim_customers') + # field: customer_id + # severity: error - name: order_date description: date of the order - name: status_code From 772dc9c80713db3cb8562dcf787f683d04ce8f93 Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Thu, 31 Oct 2024 20:16:35 +0000 Subject: [PATCH 6/7] testing --- models/marts/finance/fct_orders.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/models/marts/finance/fct_orders.sql b/models/marts/finance/fct_orders.sql index ca3b7f96..f7543106 100644 --- a/models/marts/finance/fct_orders.sql +++ b/models/marts/finance/fct_orders.sql @@ -36,3 +36,4 @@ final as ( select * from final order by order_date + From cd7d2d0a9c32729e80414c29581099465a225afa Mon Sep 17 00:00:00 2001 From: Jerrie Kumalah Date: Tue, 12 Nov 2024 20:37:16 +0000 Subject: [PATCH 7/7] adding a space --- models/staging/stripe/stg_stripe__payments.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 224130a7..4e822fd3 100644 --- a/models/staging/stripe/stg_stripe__payments.sql +++ b/models/staging/stripe/stg_stripe__payments.sql @@ -15,3 +15,5 @@ select from {{ ref('snapshot_stg_payments') }} -- pull only the most recent update for each unique record where dbt_valid_to is null + +