[Bug] catalog.json
includes all nodes even when no nodes are selected during dbt docs generate
#8794
Labels
catalog.json
includes all nodes even when no nodes are selected during dbt docs generate
#8794
Is this a new bug in dbt-core?
Current Behavior
When no nodes are selected during
dbt docs generate
, thentarget/catalog.json
includes all nodes (rather than 0 nodes).Expected Behavior
Expected that
target/catalog.json
would contain 0 nodes rather than all nodes.i.e., expected that it would be the same as when running
dbt docs generate --empty-catalog
:Steps To Reproduce
dbt docs generate --select nothing
(where there is no node namednothing
)target/catalog.json
Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
In case it is helpful in some way, my hack here contains logic for selecting 0 nodes rather than all nodes.
The text was updated successfully, but these errors were encountered: