Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenyuLInx committed Oct 16, 2023
1 parent efa6339 commit 83cb435
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/dbt/parser/partial.py
Original file line number Diff line number Diff line change
Expand Up @@ -922,6 +922,9 @@ def delete_schema_semantic_model(self, schema_file, semantic_model_dict):
if unique_id in self.saved_manifest.semantic_models:
semantic_model = self.saved_manifest.semantic_models[unique_id]
if semantic_model.name == semantic_model_name:
# Need to find everything that referenced this semantic model and schedule for parsing
if unique_id in self.saved_manifest.child_map:
self.schedule_nodes_for_parsing(self.saved_manifest.child_map[unique_id])

Check warning on line 927 in core/dbt/parser/partial.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/parser/partial.py#L926-L927

Added lines #L926 - L927 were not covered by tests
self.saved_manifest.semantic_models.pop(unique_id)
schema_file.semantic_models.remove(unique_id)
elif unique_id in self.saved_manifest.disabled:
Expand Down

0 comments on commit 83cb435

Please sign in to comment.