From b14ec651d61f20ae983ac5f1fcbf237e3cfb79ed Mon Sep 17 00:00:00 2001 From: Andrew Sweet Date: Sat, 23 Mar 2024 20:23:18 -0400 Subject: [PATCH] Fix none group case --- core/dbt/graph/selector_methods.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dbt/graph/selector_methods.py b/core/dbt/graph/selector_methods.py index 87190c047bb..629158a95d4 100644 --- a/core/dbt/graph/selector_methods.py +++ b/core/dbt/graph/selector_methods.py @@ -277,7 +277,8 @@ class GroupSelectorMethod(SelectorMethod): def search(self, included_nodes: Set[UniqueId], selector: str) -> Iterator[UniqueId]: """yields nodes from included in the specified group""" for node, real_node in self.groupable_nodes(included_nodes): - if fnmatch(selector, real_node.config.get("group")): + node_group = real_node.config.get("group") + if node_group and fnmatch(selector, node_group): yield node