Skip to content

Commit

Permalink
Merge branch 'main' into monorepo/shared-workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare authored Dec 5, 2024
2 parents 87f439a + c7b12ae commit 6d1b194
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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.2"
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"pytz>=2015.7",
# installed via dbt-common but used directly
"agate>=1.0,<2.0",
"mashumaro[msgpack]>=3.0,<4.0",
"mashumaro[msgpack]>=3.9,<3.15",
"protobuf>=5.0,<6.0",
"typing-extensions>=4.0,<5.0",
]
Expand Down

0 comments on commit 6d1b194

Please sign in to comment.