context_columns parameter.
When a test fails, the failing rows are returned together with the columns you care about — making it much easier to investigate the root cause directly from the test results.
If context_columns is omitted, all columns are returned alongside failing rows.
If a column listed in
context_columns does not exist on the model, a warning
is logged and that column is skipped. The test continues and will not error.not_null_with_context
elementary.not_null_with_context
Validates that there are no null values in a column. Extends dbt’s built-in not_null test.
Parameters
accepted_range_with_context
elementary.accepted_range_with_context
Validates that column values fall within an accepted range. Extends dbt_utils.accepted_range.
Parameters
* At least one of
min_value or max_value must be provided.
expect_column_values_to_not_be_null_with_context
elementary.expect_column_values_to_not_be_null_with_context
Expects column values to not be null. Extends dbt_expectations.expect_column_values_to_not_be_null.
Parameters
expect_column_values_to_be_unique_with_context
elementary.expect_column_values_to_be_unique_with_context
Expects column values to be unique. Returns all duplicate rows (not just a count), so you can see the full context of each duplicate. Extends dbt_expectations.expect_column_values_to_be_unique.
Parameters
expect_column_values_to_match_regex_with_context
elementary.expect_column_values_to_match_regex_with_context
Expects column values to match a given regular expression. Extends dbt_expectations.expect_column_values_to_match_regex.
Requires
dbt_expectations to be installed in your project.Parameters
relationships_with_context
elementary.relationships_with_context
Validates referential integrity between a child and parent table. Extends dbt’s built-in relationships test.

