Skip to content

Instantly share code, notes, and snippets.

@ernestoongaro
Created September 15, 2021 15:12
Show Gist options
  • Save ernestoongaro/44549138f693ac0613f7cb0c2572b155 to your computer and use it in GitHub Desktop.
Save ernestoongaro/44549138f693ac0613f7cb0c2572b155 to your computer and use it in GitHub Desktop.
core.yml
models:
- name: dim_customers
description: Customer dimensions table
columns:
- name: customer_key
description: Primary key on the customers table
tests:
- unique
- not_null
- name: region
description: region name
tests:
- accepted_values:
values: ['AFRICA','MIDDLE EAST','ASIA','EUROPE','AMERICA']
severity: warn
- name: name
description: customer id
- name: address
description: address of the customer
- name: nation
description: nation name
- name: phone_number
description: phone number of the customer
- name: account_balance
description: '{{ doc("account_balance") }}'
- name: market_segment
description: market segment of the customer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment