From a0b041759db7642e70f400f172d2a69aea2db3f3 Mon Sep 17 00:00:00 2001 From: michelley-an <101600153+michelley-an@users.noreply.github.com> Date: Mon, 12 Aug 2024 06:42:45 -0700 Subject: [PATCH] Update macros/upload_individual_datasets/upload_test_executions.sql Co-authored-by: Laura Li Foa Wing <100870296+llifoawing@users.noreply.github.com> --- macros/upload_individual_datasets/upload_test_executions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/upload_individual_datasets/upload_test_executions.sql b/macros/upload_individual_datasets/upload_test_executions.sql index 5401d4e7..cb13288b 100644 --- a/macros/upload_individual_datasets/upload_test_executions.sql +++ b/macros/upload_individual_datasets/upload_test_executions.sql @@ -188,7 +188,7 @@ {% if query_completed_at %}'{{ query_completed_at }}'{% else %}null{% endif %}, {# query_completed_at #} {{ test.execution_time }}, {# total_node_runtime #} - try_cast('{{ model.adapter_response.rows_affected }}' as int), {# rows_affected #} + try_cast('{{ test.adapter_response.rows_affected }}' as int), {# rows_affected #} {{ 'null' if test.failures is none else test.failures }}, {# failures #} '{{ test.message | replace("\\", "\\\\") | replace("'", "\\'") | replace('"', '\\"') }}', {# message #} '{{ tojson(test.adapter_response) | replace("\\", "\\\\") | replace("'", "\\'") | replace('"', '\\"') }}' {# adapter_response #}