Skip to content

Commit

Permalink
manifest.resolve_ref with package in patch parser
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed May 7, 2023
1 parent 076c65c commit 1fa3608
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/dbt/parser/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,7 +918,10 @@ def parse_patch(self, block: TargetBlock[NodeTarget], refs: ParserRef) -> None:
assert isinstance(self.yaml.file, SchemaSourceFile)
source_file: SchemaSourceFile = self.yaml.file
if patch.yaml_key in ["models", "seeds", "snapshots"]:
unique_id = self.manifest.ref_lookup.get_unique_id(patch.name, None, None)
unique_id = self.manifest.ref_lookup.get_unique_id(
patch.name, self.project.project_name, None
) or self.manifest.ref_lookup.get_unique_id(patch.name, None, None)

if unique_id:
resource_type = NodeType(unique_id.split(".")[0])
if resource_type.pluralize() != patch.yaml_key:
Expand Down

0 comments on commit 1fa3608

Please sign in to comment.