Skip to content

Commit

Permalink
add unique temp table suffix for iceberg tables (#757)
Browse files Browse the repository at this point in the history
Co-authored-by: Carneiro, Rodrigo <[email protected]>
  • Loading branch information
teoria and Carneiro, Rodrigo authored Nov 20, 2024
1 parent cb2d109 commit bacbe23
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 bacbe23

Please sign in to comment.