From 6c7a88c751940dc4225e26afb1b9673c7c2e3c44 Mon Sep 17 00:00:00 2001 From: Pankaj Saini <93124714+psaini-qontigo@users.noreply.github.com> Date: Tue, 9 May 2023 09:58:01 +0100 Subject: [PATCH] Use node.compiled_code for dbt-core>=v1.3.0 --- macros/run_end/save_results_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/run_end/save_results_history.sql b/macros/run_end/save_results_history.sql index 0b44bbc..7e4988c 100644 --- a/macros/run_end/save_results_history.sql +++ b/macros/run_end/save_results_history.sql @@ -91,7 +91,7 @@ 'failures_json': '' ~ failures_list, 'failures_table': el.node.relation_name or none, 'severity': el.node.config.severity, - 'compiled_sql': el.node.compiled_sql or none, + 'compiled_sql': el.node.compiled_sql or el.node.compiled_code or none, 'run_at': run_started_at_str, }) }}