Skip to content

Commit

Permalink
Add group_map check
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Nov 14, 2024
1 parent c79c4b0 commit 9920ce4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/dbt/task/group_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Check warning on line 18 in core/dbt/task/group_lookup.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/group_lookup.py#L18

Added line #L18 was not covered by tests

_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():
Expand Down

0 comments on commit 9920ce4

Please sign in to comment.