diff --git a/core/dbt/parser/schemas.py b/core/dbt/parser/schemas.py index 12bb84a5037..e9c66e184e4 100644 --- a/core/dbt/parser/schemas.py +++ b/core/dbt/parser/schemas.py @@ -1,4 +1,5 @@ import datetime +import pathlib import time from abc import ABCMeta, abstractmethod from dataclasses import dataclass, field @@ -289,9 +290,15 @@ def _add_yaml_snapshot_nodes_to_manifest( parser = SnapshotParser(self.project, self.manifest, self.root_project) fqn = parser.get_fqn_prefix(block.path.relative_path) fqn.append(snapshot["name"]) + + compiled_path = str( + pathlib.PurePath("").joinpath( + block.path.relative_path, snapshot["name"] + ".sql" + ) + ) snapshot_node = parser._create_parsetime_node( block, - self.get_compiled_path(block), + compiled_path, parser.initial_config(fqn), fqn, snapshot["name"],