From 942968c6b37d4fdbf21d97c464bb3a67799add69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20V=C3=A1zquez-Barreiros?= Date: Wed, 8 Jan 2025 20:49:39 +0000 Subject: [PATCH] Update incremental.sql --- dbt/include/bigquery/macros/materializations/incremental.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbt/include/bigquery/macros/materializations/incremental.sql b/dbt/include/bigquery/macros/materializations/incremental.sql index 50c62c414..58014fade 100644 --- a/dbt/include/bigquery/macros/materializations/incremental.sql +++ b/dbt/include/bigquery/macros/materializations/incremental.sql @@ -79,14 +79,14 @@ {%- set target_relation = this %} {%- set existing_relation = load_relation(this) %} {%- set temp_schema = config.get('temp_schema') -%} - {%- if temp_schema_suffix is not none-%} + {%- if temp_schema is not none-%} {%- set temp_relation = this.incorporate(path={ "schema": temp_schema }) -%} {%- do create_schema(temp_relation) -%} {% endif %} {%- set tmp_relation = make_temp_relation(temp_relation) %} - + {#-- Validate early so we don't run SQL if the strategy is invalid --#} {% set strategy = dbt_bigquery_validate_get_incremental_strategy(config) -%}