Skip to content

Commit

Permalink
Set compiled path using snapshot name + ".sql"
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Dec 16, 2024
1 parent 8fe649f commit 59ddd2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion core/dbt/parser/schemas.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import datetime
import pathlib
import time
from abc import ABCMeta, abstractmethod
from dataclasses import dataclass, field
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 59ddd2f

Please sign in to comment.