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 diff --git a/models/marts/finance/fct_orders.sql b/models/marts/finance/fct_orders.sql index 3fcc62ae..f7543106 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,6 @@ final as ( ) select * from final -order by order_date \ No newline at end of file +order by order_date + + diff --git a/models/staging/stripe/stg_stripe__payments.sql b/models/staging/stripe/stg_stripe__payments.sql index 61ede9e5..4e822fd3 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, - -- descriptions paymentmethod as payment_method, status, @@ -16,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 + +