at_least_one

Feb 24, 2026

·

5

min read

Null handling, Volume

·

dbt-utils

·

Model,Column

How it Works

The at_least_one test from dbt-utils™ validates that a column contains at least one non-null value. While simple, this test is an important safety net to detect empty or fully-null columns that would silently break downstream aggregations or lookups. It's commonly applied to key columns in models that should always have data.

Steps and Conditions

  1. Column Selection: Identify the column to evaluate.

  2. Execution: The test checks whether any non-null value exists in the column.

  3. Outcome: Pass if at least one non-null value is found; fail if all values are null.

Example Usage: Product Inventory

A product inventory model should always have at least one active SKU. The team applies at_least_one to ensure the table is never fully empty after a transformation.

models:
  - name: active_inventory
    columns:
      - name: sku
        tests

models:
  - name: active_inventory
    columns:
      - name: sku
        tests

models:
  - name: active_inventory
    columns:
      - name: sku
        tests

A completely null sku column would indicate a failed data load, which this test will catch immediately.

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.