From dff781bf18fdad10693e70cf50812ddfaba64c7a Mon Sep 17 00:00:00 2001 From: Mark Greenwood Date: Thu, 25 Jan 2024 12:10:26 +0000 Subject: [PATCH] replace model for include all results --- macros/upload_individual_datasets/upload_models.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macros/upload_individual_datasets/upload_models.sql b/macros/upload_individual_datasets/upload_models.sql index 57b1caff..7570b06a 100644 --- a/macros/upload_individual_datasets/upload_models.sql +++ b/macros/upload_individual_datasets/upload_models.sql @@ -80,7 +80,7 @@ {% if var('dbt_artifacts_exclude_all_results', false) %} null {% else %} - {{ adapter.dispatch('parse_json', 'dbt_artifacts')(tojson(model) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"')) }} {# all_results #} + {{ adapter.dispatch('parse_json', 'dbt_artifacts')(tojson(model_copy) | replace("\\", "\\\\") | replace("'","\\'") | replace('"', '\\"')) }} {# all_results #} {% endif %} ) {%- if not loop.last %},{%- endif %} @@ -116,7 +116,7 @@ {% if var('dbt_artifacts_exclude_all_results', false) %} null {% else %} - $${{ tojson(model) }}$$ {# all_results #} + $${{ tojson(model_copy) }}$$ {# all_results #} {% endif %} ) {%- if not loop.last %},{%- endif %}