diff --git a/core/dbt/task/group_lookup.py b/core/dbt/task/group_lookup.py index efe8a856dd7..40f21cbe511 100644 --- a/core/dbt/task/group_lookup.py +++ b/core/dbt/task/group_lookup.py @@ -14,6 +14,9 @@ def init(manifest: Optional[Manifest], selected_ids: AbstractSet[str]) -> None: if not manifest.groups: return + if not hasattr(manifest, "group_map"): + manifest.build_group_map() + _every_group_name_to_group_map = {v.name: v for v in manifest.groups.values()} for group_name, node_ids in manifest.group_map.items():