From 3bbd76b328f25ba919a99d40c08eed37fc8c1b28 Mon Sep 17 00:00:00 2001 From: robomill <84311571+robomill@users.noreply.github.com> Date: Tue, 3 May 2022 21:31:57 +0200 Subject: [PATCH] incorrect parameter is passed to the bq_insert_overwrite macro call in the bq_generate_incremental_build_sql macro causing two tmp tables to be created (#172) --- dbt/include/bigquery/macros/materializations/incremental.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/bigquery/macros/materializations/incremental.sql b/dbt/include/bigquery/macros/materializations/incremental.sql index f9d36aead..b6d387890 100644 --- a/dbt/include/bigquery/macros/materializations/incremental.sql +++ b/dbt/include/bigquery/macros/materializations/incremental.sql @@ -109,7 +109,7 @@ {% endif %} {% set build_sql = bq_insert_overwrite( - tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, on_schema_change + tmp_relation, target_relation, sql, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists ) %} {% else %} {# strategy == 'merge' #}