Catalog Checks: Catalog Sources#
Note
The below checks require both catalog.json and manifest.json to be present.
Functions:
| Name | Description |
|---|---|
check_source_columns_are_all_documented |
All columns in a source should be included in the source's properties file, i.e. |
check_source_columns_are_all_documented
#
All columns in a source should be included in the source's properties file, i.e. .yml file.
Rationale
Source tables are the entry point for raw data into a dbt project. When a column exists in the database but is absent from the source properties file, it cannot have a description, a freshness check, or a data test applied to it. Over time, undocumented columns accumulate silently, making it harder to understand what data is available and creating blind spots in data quality monitoring. This check enforces full column coverage so that every raw field is explicitly acknowledged and can be tested or documented.
Receives at execution time:
| Name | Type | Description |
|---|---|---|
catalog_source |
CatalogNodeEntry
|
The CatalogNodeEntry object to check. |
sources |
list[SourceNode]
|
List of SourceNode objects parsed from |
Other Parameters (passed via config file):
| Name | Type | Description |
|---|---|---|
description |
str | None
|
Description of what the check does and why it is implemented. |
exclude |
str | None
|
Regex pattern to match the source path (i.e the .yml file where the source is configured). Source paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the source path (i.e the .yml file where the source is configured). Only source paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):