freshness_anomalies

Feb 24, 2026

·

5

min read

Anomaly detection, Freshness

·

elementary

·

Model,Source

How it Works

The freshness_anomalies test from the Elementary dbt package monitors data freshness patterns over time and flags deviations from the historical norm. Unlike threshold-based freshness tests, it learns from past update intervals and raises an alert when the current update lag is statistically unusual compared to historical behavior.

Steps and Conditions

  1. Timestamp Column: Specify the field to monitor using timestamp_column.

  2. Baseline Period: Elementary uses historical update intervals to learn normal freshness patterns.

  3. Execution: The current time since last update is compared to the expected pattern.

  4. Outcome: Pass if the update lag is within the normal range; fail if it represents an anomaly.

Example Usage: CRM Data Sync

A CRM data sync updates a contacts table at irregular but historically consistent intervals. The team wants to detect unusual delays without hardcoding a fixed threshold.

models:
  - name: contacts
    tests:
      - elementary.freshness_anomalies:
          timestamp_column

models:
  - name: contacts
    tests:
      - elementary.freshness_anomalies:
          timestamp_column

models:
  - name: contacts
    tests:
      - elementary.freshness_anomalies:
          timestamp_column

If the sync unexpectedly pauses for far longer than historically observed, Elementary raises an alert before the stale data reaches downstream dashboards.

Interested to Learn More?
Try Out the Free 14-Days Trial

More Articles

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.