From c0e16deeaded05404ec0565169e1be4040e5ec7e Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Tue, 24 Sep 2024 10:11:46 -0500 Subject: [PATCH] Alter `PartialSuccess` status to be considered an error in `interpret_run_result` --- core/dbt/task/printer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dbt/task/printer.py b/core/dbt/task/printer.py index f7e4dc0f63f..63472bdd043 100644 --- a/core/dbt/task/printer.py +++ b/core/dbt/task/printer.py @@ -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 in (NodeStatus.Warn): return "warn" elif result.status in (NodeStatus.Pass, NodeStatus.Success): return "pass"