From 14ae7dd60bb8b5a6d6a9b1877de103776b40d8b8 Mon Sep 17 00:00:00 2001 From: Will Deng Date: Wed, 23 Oct 2024 16:59:08 -0400 Subject: [PATCH] asdf --- models/marts/customer360/order_items.yml | 3 +-- models/marts/customer360/orders.sql | 3 ++- models/staging/__sources.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/models/marts/customer360/order_items.yml b/models/marts/customer360/order_items.yml index 1359413..80bac24 100644 --- a/models/marts/customer360/order_items.yml +++ b/models/marts/customer360/order_items.yml @@ -164,8 +164,7 @@ saved_queries: query_params: metrics: - revenue - group_by: - - TimeDimension('metric_time', 'week') + - order_total exports: - name: weekly_revenue config: diff --git a/models/marts/customer360/orders.sql b/models/marts/customer360/orders.sql index 8c32590..f6be5b2 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 test from orders diff --git a/models/staging/__sources.yml b/models/staging/__sources.yml index 5de563d..9c6c7da 100644 --- a/models/staging/__sources.yml +++ b/models/staging/__sources.yml @@ -2,7 +2,7 @@ version: 2 sources: - name: ecom - schema: dbt_sl_test + schema: dev_willdeng_prod description: E-commerce data tables: - name: raw_customers @@ -33,7 +33,7 @@ sources: - name: raw_supplies description: One record per supply per SKU of items sold in stores - name: conversion_sources - schema: '{{ target.schema }}' + schema: dev_willdeng_prod description: Source data for conversion metrics tables: - name: olist_closed_deals_dataset