From faf20df3936ef885768e016f8c378c2e6976def2 Mon Sep 17 00:00:00 2001 From: Jordan Stein Date: Wed, 8 May 2024 12:51:25 -0700 Subject: [PATCH 1/4] ci test --- dbt_project.yml | 2 ++ models/marts/customer360/order_items.yml | 2 -- models/marts/customer360/orders.sql | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index b597dad..ae10b64 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -45,3 +45,5 @@ models: saved-queries: +cache: enabled: true + exports: + +export_as: table diff --git a/models/marts/customer360/order_items.yml b/models/marts/customer360/order_items.yml index 8c82fe5..69b67cc 100644 --- a/models/marts/customer360/order_items.yml +++ b/models/marts/customer360/order_items.yml @@ -142,8 +142,6 @@ saved_queries: - TimeDimension('customer__first_ordered_at', 'day') exports: - name: order_data_key_metrics - config: - export_as: table - name: weekly_revenue description: Weekly revenue query_params: diff --git a/models/marts/customer360/orders.sql b/models/marts/customer360/orders.sql index 8c32590..2a159f9 100644 --- a/models/marts/customer360/orders.sql +++ b/models/marts/customer360/orders.sql @@ -36,7 +36,8 @@ compute_booleans as ( orders.*, count_food_items > 0 as is_food_order, count_drink_items > 0 as is_drink_order, - order_cost + order_cost, + 1 as ci_test from orders From 7f87d5161ead3541f7619f9c36cf4098cbdec20d Mon Sep 17 00:00:00 2001 From: Jordan Stein Date: Wed, 8 May 2024 12:57:31 -0700 Subject: [PATCH 2/4] remove saved queries --- dbt_project.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index ae10b64..0099e21 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -41,9 +41,3 @@ models: +materialized: view marts: +materialized: table - -saved-queries: - +cache: - enabled: true - exports: - +export_as: table From ed1c49e86ba6aa87afacf9a56ad441d5551cd9b7 Mon Sep 17 00:00:00 2001 From: Jordan Stein Date: Wed, 8 May 2024 12:59:07 -0700 Subject: [PATCH 3/4] remove export config --- models/marts/customer360/order_items.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/models/marts/customer360/order_items.yml b/models/marts/customer360/order_items.yml index 69b67cc..c65b1c7 100644 --- a/models/marts/customer360/order_items.yml +++ b/models/marts/customer360/order_items.yml @@ -142,6 +142,9 @@ saved_queries: - TimeDimension('customer__first_ordered_at', 'day') exports: - name: order_data_key_metrics + config: + export_as: table + - name: weekly_revenue description: Weekly revenue query_params: From 2d95cea9cd8104af73ba5e1b5b00447554e2b347 Mon Sep 17 00:00:00 2001 From: Jordan Stein Date: Wed, 8 May 2024 20:13:33 -0700 Subject: [PATCH 4/4] test ci script --- models/marts/customer360/order_items.sql | 2 +- models/marts/customer360/orders.sql | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/models/marts/customer360/order_items.sql b/models/marts/customer360/order_items.sql index 6f4ceea..0ef4ed1 100644 --- a/models/marts/customer360/order_items.sql +++ b/models/marts/customer360/order_items.sql @@ -38,7 +38,7 @@ order_supplies_summary as ( joined as ( select order_items.*, - products.product_price, + products.product_price as product_price_renamed, order_supplies_summary.supply_cost, products.is_food_item, products.is_drink_item, diff --git a/models/marts/customer360/orders.sql b/models/marts/customer360/orders.sql index 2a159f9..8c32590 100644 --- a/models/marts/customer360/orders.sql +++ b/models/marts/customer360/orders.sql @@ -36,8 +36,7 @@ compute_booleans as ( orders.*, count_food_items > 0 as is_food_order, count_drink_items > 0 as is_drink_order, - order_cost, - 1 as ci_test + order_cost from orders