Skip to content

Commit

Permalink
respect project root when loading seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Oct 3, 2023
1 parent 0c965c8 commit 62aeebf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/dbt/context/providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,7 @@ def try_or_compiler_error(
def load_agate_table(self) -> agate.Table:
if not isinstance(self.model, SeedNode):
raise LoadAgateTableNotSeedError(self.model.resource_type, node=self.model)
assert self.model.root_path
path = os.path.join(self.model.root_path, self.model.original_file_path)
path = os.path.join(self.config.project_root, self.model.original_file_path)

Check warning on line 865 in core/dbt/context/providers.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/context/providers.py#L865

Added line #L865 was not covered by tests
column_types = self.model.config.column_types
delimiter = self.model.config.delimiter
try:
Expand Down

0 comments on commit 62aeebf

Please sign in to comment.