recency (source)
Asserts that a timestamp column in the reference model contains data that is at least as recent as the defined date interval.
Usage:
models:
- name: model_name
tests:
- dbt_utils.recency:
datepart: day
field: created_at
interval: 1
This test supports the group_by_columns
parameter; see Grouping in tests for details.