Skip to content

Commit

Permalink
Set unique temp table suffix to allow parallel incremental(merge) exe…
Browse files Browse the repository at this point in the history
…cutions

Signed-off-by: huangxingyi <[email protected]>
  • Loading branch information
huangxingyi-git committed Nov 23, 2024
1 parent 8fc6973 commit 9d60e33
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}
{%- set target_relation = this.incorporate(type='table') -%}
{%- set existing_relation = adapter.get_relation(database=this.database, schema=this.schema, identifier=this.identifier, needs_information=True) -%}
{%- if unique_tmp_table_suffix == True and raw_strategy == 'replace_where' and raw_file_format == 'delta' -%}
{%- if unique_tmp_table_suffix == True and raw_strategy in ['merge', 'replace_where'] and raw_file_format == 'delta' -%}
{%- set temp_relation_suffix = adapter.generate_unique_temporary_table_suffix() -%}
{%- else -%}
{%- set temp_relation_suffix = '__dbt_tmp' -%}
Expand Down

0 comments on commit 9d60e33

Please sign in to comment.