Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 502 Bytes

recency.md

File metadata and controls

16 lines (13 loc) · 502 Bytes

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.