-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathbasic_test_example_d_site.yml
More file actions
31 lines (28 loc) · 922 Bytes
/
basic_test_example_d_site.yml
File metadata and controls
31 lines (28 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: 2
models:
- name: basic_test_example_d_site
tests:
- dbt_assertions.generic_assertions:
arguments:
column: exceptions
include_list:
- site_id_is_not_null
# `re_assert: true` to use only if your assertion's column
# is not computed and saved in your table.
re_assert: true
columns:
- name: site_id
- name: country_trigram
- name: open_date
- name: exceptions
config:
meta:
assertions:
site_id_is_not_null:
description: 'Site ID is not null.'
expression: site_id IS NOT NULL
site_trigram_format:
description: 'Site trigram must contain 3 upper digits'
expression: |
LENGTH(site_trigram) = 3
AND site_trigram = UPPER(site_trigram)