Description#
Note
The below checks require catalog.json to be present.
Checks related to column descriptions and documentation coverage.
Functions:
| Name | Description |
|---|---|
check_column_description_populated |
Columns must have a populated description. |
check_columns_are_all_documented |
All columns in a model should be included in the model's properties file, i.e. |
check_columns_are_documented_in_public_models |
Columns should have a populated description in public models. |
check_column_description_populated
#
Columns must have a populated description.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
min_description_length
|
int | None
|
Minimum length required for the description to be considered populated. |
None
|
Receives at execution time:
| Name | Type | Description |
|---|---|---|
catalog_node |
CatalogNodeEntry
|
The CatalogNodeEntry object to check. |
manifest_obj |
ManifestObject
|
The ManifestObject object parsed from |
models |
list[ModelNode]
|
List of ModelNode 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 model path. Model paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the model path. Only model paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):
manifest_checks:
- name: check_column_description_populated
min_description_length: 25 # Setting a stricter requirement for description length
Source code in src/dbt_bouncer/checks/catalog/columns/description.py
check_columns_are_all_documented
#
All columns in a model should be included in the model's properties file, i.e. .yml file.
Receives at execution time:
| Name | Type | Description |
|---|---|---|
case_sensitive |
bool | None
|
Whether the column names are case sensitive or not. Necessary for adapters like |
catalog_node |
CatalogNodeEntry
|
The CatalogNodeEntry object to check. |
manifest_obj |
ManifestObject
|
The ManifestObject object parsed from |
models |
list[ModelNode]
|
List of ModelNode 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 model path. Model paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the model path. Only model paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):
Source code in src/dbt_bouncer/checks/catalog/columns/description.py
check_columns_are_documented_in_public_models
#
Columns should have a populated description in public models.
Receives at execution time:
| Name | Type | Description |
|---|---|---|
catalog_node |
CatalogNodeEntry
|
The CatalogNodeEntry object to check. |
min_description_length |
int | None
|
Minimum length required for the description to be considered populated. |
models |
list[ModelNode]
|
List of ModelNode 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 model path. Model paths that match the pattern will not be checked. |
include |
str | None
|
Regex pattern to match the model path. Only model paths that match the pattern will be checked. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):