Skip to content

Commit

Permalink
Allow override of process_run_result
Browse files Browse the repository at this point in the history
  • Loading branch information
acjh committed Oct 31, 2024
1 parent aaab488 commit b27655c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/dbt/artifacts/schemas/run/v5/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def from_execution_results(
args: Dict,
):
processed_results = [
process_run_result(result) for result in results if isinstance(result, RunResult)
cls._process_run_result(result) for result in results if isinstance(result, RunResult)
]
meta = RunResultsMetadata(
dbt_schema_version=str(cls.dbt_schema_version),
Expand Down Expand Up @@ -182,5 +182,9 @@ def upgrade_schema_version(cls, data):
result["relation_name"] = ""
return cls.from_dict(data)

@classmethod
def _process_run_result(cls, result: RunResult) -> RunResultOutput:
return process_run_result(result)

def write(self, path: str):
write_json(path, self.to_dict(omit_none=False))

0 comments on commit b27655c

Please sign in to comment.