Skip to content

Commit 86bd68e

Browse files
taha-azizttboogie
authored andcommitted
Add schema and recency tests for tvl_agg mart model
1 parent dc97bb4 commit 86bd68e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

models/marts/tvl/tvl_agg.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@ version: 2
33
models:
44
- name: tvl_agg
55
description: "This table aggregates TVL from accounts and trustlines to calculate total TVL"
6+
tests:
7+
- elementary.schema_changes:
8+
tags: [schema_changes]
9+
config:
10+
severity: warn
11+
- dbt_utils.recency:
12+
tags: [recency]
13+
datepart: day
14+
field: day
15+
interval: 2
16+
ignore_time_component: true
17+
config:
18+
enabled: '{{ target.name == "ci" or var("is_recency_airflow_task") == "true" }}'
19+
severity: '{{ "error" if target.name == "prod" else "warn" }}'
20+
meta:
21+
description: "Monitors the freshness of your table over time, as the expected time between data updates."
622
columns:
723
- name: day
824
description: '{{ doc("day") }}'

0 commit comments

Comments
 (0)