Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mwong test #68

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions models/marts/customers.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{{ config(meta = {
'favorite_food': 'pizza'
}) }}

select 1 as id

with

customers as (
Expand Down
9 changes: 9 additions & 0 deletions models/marts/customers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
models:
- name: customers
config:
meta:
favorite_food: "pizza"
description: Customer overview data mart, offering key details for each unique customer. One row per customer.
data_tests:
- dbt_utils.expression_is_true:
Expand Down Expand Up @@ -75,6 +78,9 @@ metrics:
type: simple
type_params:
measure: lifetime_spend_pretax
config:
meta:
owner: "finance_team"
- name: count_lifetime_orders
description: Count of lifetime orders
label: Count Lifetime Orders
Expand All @@ -93,6 +99,8 @@ metrics:

saved_queries:
- name: customer_order_metrics
config:
tags: ['santi']
query_params:
metrics:
- count_lifetime_orders
Expand All @@ -104,3 +112,4 @@ saved_queries:
- name: customer_order_metrics
config:
export_as: table
tags: ['santi']
3 changes: 2 additions & 1 deletion models/marts/orders.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
models:
- name: orders
description: Order overview data mart, offering key details for each order inlcluding if it's a customer's first order and a food vs. drink item breakdown. One row per order.
description:
Order overview data mart, offering key details for each order inlcluding if it's a customer's first order and a food vs. drink item breakdown. One row per order.
data_tests:
- dbt_utils.expression_is_true:
expression: "order_items_subtotal = subtotal"
Expand Down
24 changes: 0 additions & 24 deletions models/marts/supplies.yml

This file was deleted.

6 changes: 5 additions & 1 deletion models/staging/stg_supplies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ models:
List of our supply expenses data with basic cleaning and transformation applied.

One row per supply cost, not per supply. As supply costs fluctuate they receive a new row with a new UUID. Thus there can be multiple rows per supply_id.
config:
tags: ['santi']
columns:
- name: supply_uuid
description: The unique key of our supplies per cost.
tags: ['santi']
data_tests:
- not_null
- unique
- unique:
tags: ['santi']
6 changes: 3 additions & 3 deletions package-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ packages:
version: 1.1.1
- package: calogica/dbt_date
version: 0.10.0
- package: dbt-labs/audit_helper
version: 0.12.0
sha1_hash: 974021e878d1894c35a21fb44fb0b6bd04f07078
- git: https://github.com/dbt-labs/dbt-audit-helper.git
revision: c0be07f84e61dd01517292a15a2c084af9c95f01
sha1_hash: da0d5b1d5a48f6504805f6b1d5a0b2f9f233f34c
Loading