From 3fd7645cfb450375bb680fa99eb1731a5f481488 Mon Sep 17 00:00:00 2001 From: Jonathan Sellar Date: Thu, 21 Sep 2023 13:37:39 +1200 Subject: [PATCH] add else clause to for if loops --- macros/upload_individual_datasets/upload_model_executions.sql | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macros/upload_individual_datasets/upload_model_executions.sql b/macros/upload_individual_datasets/upload_model_executions.sql index 3ff87cc5..55e79432 100644 --- a/macros/upload_individual_datasets/upload_model_executions.sql +++ b/macros/upload_individual_datasets/upload_model_executions.sql @@ -179,6 +179,8 @@ {% else %} '{{ stage.started_at }}', {# compile_started_at #} {% endif %} + { % else %} + null, {# compile_started_at #} {% endfor %} {% for stage in model.timing if stage.name == "execute" %} @@ -187,6 +189,8 @@ {% else %} '{{ stage.completed_at }}', {# query_completed_at #} {% endif %} + { % else %} + null, {# query_completed_at #} {% endfor %} {% else %} null, {# compile_started_at #}