Skip to content

Commit

Permalink
exclude semantic models from grouper
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-connors-3 committed Jan 15, 2024
1 parent 2472420 commit 283f291
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dbt_meshify/utilities/grouper.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def _generate_resource_group(

logger.info(f"Selected {len(nodes)} resources: {nodes}")
# Check if any of the selected nodes are already in a group of a different name. If so, raise an exception.
nodes = set(filter(lambda x: not x.startswith("source"), nodes))
nodes = set(
filter(
lambda x: not x.startswith("source") and not x.startswith("semantic_model"), nodes
)
)
for node in nodes:
existing_group = self.project.manifest.nodes[node].config.group

Expand Down

0 comments on commit 283f291

Please sign in to comment.