From 7829b1039309574e46024f9ee6b44f82f47494ee Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 5 Dec 2024 14:16:37 -0500 Subject: [PATCH] leverage new global make_temp_relation --- dbt/include/snowflake/macros/materializations/incremental.sql | 3 +-- setup.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dbt/include/snowflake/macros/materializations/incremental.sql b/dbt/include/snowflake/macros/materializations/incremental.sql index a3a3c38e5..ce0273e43 100644 --- a/dbt/include/snowflake/macros/materializations/incremental.sql +++ b/dbt/include/snowflake/macros/materializations/incremental.sql @@ -81,8 +81,7 @@ {% set incremental_strategy = config.get('incremental_strategy') or 'default' %} {% set tmp_relation_type = dbt_snowflake_get_tmp_relation_type(incremental_strategy, unique_key, language) %} - {% set tmp_relation_suffix = '__dbt_tmp' if not model.batch else '__dbt_tmp_' ~ model.batch.id %} - {% set tmp_relation = make_temp_relation(this, suffix=tmp_relation_suffix).incorporate(type=tmp_relation_type) %} + {% set tmp_relation = make_temp_relation(this).incorporate(type=tmp_relation_type) %} {% set grant_config = config.get('grants') %} diff --git a/setup.py b/setup.py index c0716341d..b237182ce 100644 --- a/setup.py +++ b/setup.py @@ -58,7 +58,7 @@ def _plugin_version() -> str: include_package_data=True, install_requires=[ "dbt-common>=1.10,<2.0", - "dbt-adapters>=1.7,<2.0", + "dbt-adapters>=1.10.4,<2.0", "snowflake-connector-python[secure-local-storage]~=3.0", # add dbt-core to ensure backwards compatibility of installation, this is not a functional dependency "dbt-core>=1.8.0",