Skip to content

Commit

Permalink
add back in conditional node length check (dbt-labs#6298)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop authored Nov 22, 2022
1 parent 9877648 commit 517576c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/graph/selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def select_nodes_recursively(self, spec: SelectionSpec) -> Tuple[Set[UniqueId],

direct_nodes = self.incorporate_indirect_nodes(initial_direct, indirect_nodes)

if spec.expect_exists:
if spec.expect_exists and len(direct_nodes) == 0:
warn_or_error(NoNodesForSelectionCriteria(spec_raw=str(spec.raw)))

return direct_nodes, indirect_nodes
Expand Down

0 comments on commit 517576c

Please sign in to comment.