Let’s say that I have a model parent
with the following
{{ config(
enabled=(target.name == 'prod'),
) }}
I have other model child
that depend on this model via ref(xxx)
Now dbt ls
complains that
13:40:18 Encountered an error:
Compilation Error
'model.xxx.child' depends on 'model.xxx.parent' which is not in the graph!
I would like to disable parent
but also also it’s descendants including transitive ones (in other words parent+
), it’s there any direct way to do that without having to
- tag each descendant model,
- or add a
config(enabled=(target.name == 'prod '),...
to each descendant
Is there any way, to say “skip” all nodes that depend on disabled nodes transitively?