Skip to main content
Validates that a column or expression has a value in every row. Use it for required fields such as IDs, foreign keys, amounts, and status columns. This is a SQL data test: Elementary runs it against your warehouse on a schedule, with no SQL to write and no pull request.
SQL-based cloud tests read table data, so they need data access for the environment’s warehouse connection. Data access is enabled in one of two ways:
  • Elementary enables data access on the warehouse connection. Contact the Elementary team to turn it on.
  • You connect an Elementary Runtime to the warehouse connection.
Until data access is available, these tests are hidden from the test catalog.

How it works

On each run, Elementary returns every row where the tested value counts as missing. You choose what counts as missing: When you select more than one check, a row fails if it matches any of them. Each failing row is one table row, and the row sample contains the full rows. Results count toward the Completeness data quality dimension.

Configuration

Severity, thresholds, sampled rows, and cadence work the same for all SQL data tests. See Configuration.

Examples

Allow a small number of missing values with a threshold instead of a filter, for example Error if > 100. See Results.

dbt equivalent

The dbt not_null test checks for nulls from your dbt project. Checks for empty strings or zeros need a package test or a custom test in dbt. See Cloud tests or dbt tests to decide which to use.