From 58937898f882fb2b243e4244c554a29401e509d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20V=C3=A1zquez-Barreiros?= Date: Mon, 30 Dec 2024 12:29:40 +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 1ca3d1e7e..6cabdf2ed 100644 --- a/dbt/include/bigquery/macros/materializations/incremental.sql +++ b/dbt/include/bigquery/macros/materializations/incremental.sql @@ -30,7 +30,7 @@ {% set wrong_fn -%} The 'incremental_substrategy' option has to be either 'merge' (default), 'delete+insert' or 'copy_partitions'. {%- endset %} - {% do exceptions.raise_compiler_error(wrong_strategy_msg) %} + {% do exceptions.raise_compiler_error(wrong_fn) %} {% endif %} {% elif incremental_substrategy is not none%} {% set wrong_strategy_msg -%} @@ -176,7 +176,7 @@ {% endif %} {% set build_sql = bq_generate_incremental_build_sql( - strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, incremental_substrategy, + strategy, tmp_relation, target_relation, compiled_code, unique_key, partition_by, partitions, dest_columns, tmp_relation_exists, incremental_substrategy, incremental_predicates ) %} {%- call statement('main') -%}