Skip to content

Commit

Permalink
leverage new global make_temp_relation
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Dec 5, 2024
1 parent 3821905 commit 7829b10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') %}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7829b10

Please sign in to comment.