Skip to content

Commit

Permalink
Alter PartialSuccess status to be considered an error in `interpret…
Browse files Browse the repository at this point in the history
…_run_result`
  • Loading branch information
QMalcolm committed Sep 24, 2024
1 parent a6ab35d commit 8d7ab70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/dbt/task/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ def get_counts(flat_nodes) -> str:


def interpret_run_result(result) -> str:
if result.status in (NodeStatus.Error, NodeStatus.Fail):
if result.status in (NodeStatus.Error, NodeStatus.Fail, NodeStatus.PartialSuccess):
return "error"
elif result.status == NodeStatus.Skipped:
return "skip"
elif result.status in (NodeStatus.Warn, NodeStatus.PartialSuccess):
elif result.status == NodeStatus.Warn:
return "warn"
elif result.status in (NodeStatus.Pass, NodeStatus.Success):
return "pass"
Expand Down

0 comments on commit 8d7ab70

Please sign in to comment.