Skip to content

Commit

Permalink
add unique temp table suffix for iceberg tables
Browse files Browse the repository at this point in the history
  • Loading branch information
Carneiro, Rodrigo authored and Carneiro, Rodrigo committed Nov 19, 2024
1 parent cb2d109 commit 3cc650f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
{% set tmp_table_suffix = '__dbt_tmp' %}
{% endif %}

{% if unique_tmp_table_suffix == True and table_type == 'iceberg' %}
{% set tmp_table_suffix = adapter.generate_unique_temporary_table_suffix() %}
{% endif %}

{% set old_tmp_relation = adapter.get_relation(identifier=target_relation.identifier ~ tmp_table_suffix,
schema=schema,
database=database) %}
Expand Down

0 comments on commit 3cc650f

Please sign in to comment.