Skip to content

Instantly share code, notes, and snippets.

@MaxKrog
Last active January 31, 2022 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaxKrog/9be10d55f82a03ac744b4960228f26d6 to your computer and use it in GitHub Desktop.
Save MaxKrog/9be10d55f82a03ac744b4960228f26d6 to your computer and use it in GitHub Desktop.
---
version: 2
models:
- name: elt_example_model
description: Source table with cleaned input data from call log supplier X
columns:
- name: call_surr_key
decription: surrogate key for the row
tests:
- unique
- name: call_type
description: type of call (incoming/outgoing)
tests:
- accepted_values:
values: ['incoming', 'outgoing']
- name: call_outcome
description: outcome of the call (answered/unanswered)
tests:
- accepted_values:
values: ['answered', 'unanswered']
- name: call_duration
description: length of the call in seconds
tests:
- dbt_utils.expression_is_true:
expression: "> 0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment