Skip to content

Commit

Permalink
test meta
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Dec 24, 2024
1 parent df6d84e commit 9f7aaf8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
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
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']

0 comments on commit 9f7aaf8

Please sign in to comment.