Skip to content

Commit

Permalink
Merge branch 'main' into addQueryRetries
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Dec 5, 2024
2 parents 128bb28 + c7b12ae commit 3303d5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/adapters/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.10.3"
version = "1.10.4"
5 changes: 5 additions & 0 deletions dbt/include/global_project/macros/adapters/relation.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
{% endmacro %}

{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}
{#-- This ensures microbatch batches get unique temp relations to avoid clobbering --#}
{% if suffix == '__dbt_tmp' and model.batch %}
{% set suffix = suffix ~ '_' ~ model.batch.id %}
{% endif %}

{{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}
{% endmacro %}

Expand Down

0 comments on commit 3303d5e

Please sign in to comment.