Tags#
Note
The below checks require manifest.json to be present.
Checks related to model tags.
Functions:
| Name | Description |
|---|---|
check_model_has_tags |
Models must have the specified tags. |
check_model_has_tags
#
Models must have the specified tags.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
criteria
|
str
|
(Literal["any", "all", "one"] | None): Whether the model must have any, all, or exactly one of the specified tags. Default: |
'all'
|
model
|
ModelNode
|
The ModelNode object to check. |
required |
tags
|
list[str]
|
List of tags to check for. |
required |
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. |
materialization |
Literal[ephemeral, incremental, table, view] | None
|
Limit check to models with the specified materialization. |
severity |
Literal[error, warn] | None
|
Severity level of the check. Default: |
Example(s):