From a664b114fabf22e4bc343dc440cf89754b7046fa Mon Sep 17 00:00:00 2001 From: Alan Date: Sun, 20 Mar 2022 20:57:24 +0000 Subject: [PATCH] Back to the layout which *should* work --- models/incremental/fct_dbt__seed_executions.sql | 8 ++++---- models/incremental/fct_dbt__snapshot_executions.sql | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/models/incremental/fct_dbt__seed_executions.sql b/models/incremental/fct_dbt__seed_executions.sql index fe53f037..8fdaa722 100644 --- a/models/incremental/fct_dbt__seed_executions.sql +++ b/models/incremental/fct_dbt__seed_executions.sql @@ -19,10 +19,10 @@ seed_executions_incremental as ( select * from node_executions where resource_type = 'seed' - {% if is_incremental() %} - -- this filter will only be applied on an incremental run - and coalesce(artifact_generated_at > (select max(artifact_generated_at) from {{ this }}), true) - {% endif %} + {% if is_incremental() %} + -- this filter will only be applied on an incremental run + and coalesce(artifact_generated_at > (select max(artifact_generated_at) from {{ this }}), true) + {% endif %} ), diff --git a/models/incremental/fct_dbt__snapshot_executions.sql b/models/incremental/fct_dbt__snapshot_executions.sql index a7d16c0d..205cdd73 100644 --- a/models/incremental/fct_dbt__snapshot_executions.sql +++ b/models/incremental/fct_dbt__snapshot_executions.sql @@ -19,10 +19,10 @@ snapshot_executions_incremental as ( select * from node_executions where resource_type = 'snapshot' - {% if is_incremental() %} - -- this filter will only be applied on an incremental run - and coalesce(artifact_generated_at > (select max(artifact_generated_at) from {{ this }}), true) - {% endif %} + {% if is_incremental() %} + -- this filter will only be applied on an incremental run + and coalesce(artifact_generated_at > (select max(artifact_generated_at) from {{ this }}), true) + {% endif %} ),