dbt Tests

all_columns_anomalies

elementary

·

Model,Source

·

Anomaly detection

How it Works

The all_columns_anomalies test from the Elementary dbt package applies column-level anomaly detection across every column in a model simultaneously. Rather than configuring individual column tests, this model-level test automatically monitors all columns for statistical deviations from their historical norms — covering metrics such as null rates, distinct value counts, and numeric distributions.

This test is particularly powerful for wide tables where manually testing every column would be impractical.

Steps and Conditions

  1. Model Selection: Apply the test at the model level.

  2. Automatic Column Coverage: All columns in the model are monitored.

  3. Historical Baseline: Elementary uses a configurable training period to establish normal baselines.

  4. Anomaly Detection: Statistical deviations from baseline are flagged.

  5. Outcome: Pass if no column metrics deviate beyond acceptable thresholds; fail if anomalies are detected.

Example Usage: Marketing Analytics

A marketing analytics team has a wide campaign_performance table with dozens of columns. Instead of manually writing tests for each column, they apply all_columns_anomalies to monitor everything automatically.

models:
  - name: campaign_performance
    tests:
      - elementary.all_columns_anomalies:
          config:
            severity

models:
  - name: campaign_performance
    tests:
      - elementary.all_columns_anomalies:
          config:
            severity

models:
  - name: campaign_performance
    tests:
      - elementary.all_columns_anomalies:
          config:
            severity

This provides broad-spectrum data quality monitoring without requiring individual column configuration.

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

Stop Managing Pipelines. Start Shipping Them.

Join the teams that replaced manual dbt™ workflows with agentic AI. Free to start, no credit card required.

Stop Managing Pipelines. Start Shipping Them.

Join the teams that replaced manual dbt™ workflows with agentic AI. Free to start, no credit card required.

Stop Managing Pipelines. Start Shipping Them.

Join the teams that replaced manual dbt™ workflows with agentic AI. Free to start, no credit card required.

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.