[Core] Describe what contributes to state:modified
for each resource type
#5886
Labels
content
Improvements or additions to content
dbt Core
The changes proposed in this issue relate to dbt Core
size: medium
This change will take up to a week to address
Link to the page(s) on docs.getdbt.com requiring updates
https://docs.getdbt.com/reference/node-selection/state-comparison-caveats
Tell us more about this update
Folks will often want to understand why a change is or isn't included in
state:modified
.It would be great if we documented which things contribute (and possible some examples of which don't).
Reviewers/Stakeholders/SMEs
.
Related GitHub issues
dbt-labs/dbt-bigquery#1192
Additional information
state:modified
is determined bycheck_modified_content
which uses the definition ofsame_contents
(which often varies by node type).For example, a parsed node is considered modified if (and only if), one of the following has changed:
Models extend parsed nodes to also include:
But generic data tests use the the following criteria instead:
Unit tests use:
Macros:
Documentation ("docs blocks"):
Sources:
Exposures:
Metric:
Semantic model:
Saved query:
Any other properties not listed above are not taken into account as it relates to
state:modified
. For example, if a model using thedbt-bigquery
adapter definespolicy_tags
on one of its columns and then changes it subsequently, it will not affect the calculation ofstate:modified
.The text was updated successfully, but these errors were encountered: