Identifying old fields in yml docs in order to remove them #8669
Replies: 2 comments 1 reply
-
Hey @thomasaarholt! There's a relatively new feature in
models:
- name: cool_model
description: 'contains awesome stuff'
config:
contract: {enforced: true}
columns:
- name: foo
data_type: text
description: 'the foo field'
- name: bar
data_type: text
description: 'the bar field'
|
Beta Was this translation helpful? Give feedback.
-
@thomasaarholt I haven't used it myself, but you could try out the dbt_meta_testing package. The documentation for that package describes some similar features here: |
Beta Was this translation helpful? Give feedback.
-
We have some dbt models that have undergone several refactors, which has led to some fields in the model/schema's yaml documentation longer present being in the model (the maintainer has missed deleting them).
Is there any way to highlight
a) which docs contain unused fields
b) which models have fields that are missing documentation?
As a tiny example for a), I might have the following dbt model:
and this accompanying yaml file, where
bar
is now outdated and should be removed, but we haven't identified it yet:Beta Was this translation helpful? Give feedback.
All reactions