Skip to content

Commit

Permalink
Put back original logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Sep 26, 2024
1 parent ca72d00 commit cebb1ce
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/dbt/parser/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1145,12 +1145,18 @@ def process_saved_queries(self, config: RuntimeConfig):
# Note: This will also capture various nodes which have been re-parsed
# because they refer to some other changed node, so there will be
# false positives. Ideally we would compare actual changes.
semantic_manifest_changed = False
semantic_manifest_nodes: chain[SemanticManifestNode] = chain(
self.manifest.saved_queries.values(),
self.manifest.semantic_models.values(),
self.manifest.metrics.values(),
)
if any(node.created_at > self.started_at for node in semantic_manifest_nodes):
for node in semantic_manifest_nodes:
# Check if this node has been modified in this parsing run
if node.created_at > self.started_at:
semantic_manifest_changed = True
break # as soon as we run into one changed node we can stop
if semantic_manifest_changed is False:
return

current_project = config.project_name
Expand Down

0 comments on commit cebb1ce

Please sign in to comment.