Skip to content

Commit

Permalink
[ADAP-620] [Bug] Incremental materialization with "append" strategy d…
Browse files Browse the repository at this point in the history
…oes not wrap dml with explicit transaction (#673)

* [ADAP-620] [Bug] Incremental materialization with "append" strategy does not wrap dml with explicit transaction
Fixes #656

* changie

---------

Co-authored-by: Mike Alfare <[email protected]>
  • Loading branch information
danielefrigo and mikealfare authored Aug 3, 2023
1 parent 5489398 commit 8423ed0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Fixes-20230626-132631.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Fixes
body: Incremental materialization with "append" strategy does not wrap dml with explicit
transaction
time: 2023-06-26T13:26:31.575359809Z
custom:
Author: danielefrigo
Issue: "656"
6 changes: 6 additions & 0 deletions dbt/include/snowflake/macros/materializations/merge.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,9 @@
{% set dml = default__snapshot_merge_sql(target, source, insert_cols) %}
{% do return(snowflake_dml_explicit_transaction(dml)) %}
{% endmacro %}


{% macro snowflake__get_incremental_append_sql(get_incremental_append_sql) %}
{% set dml = default__get_incremental_append_sql(get_incremental_append_sql) %}
{% do return(snowflake_dml_explicit_transaction(dml)) %}
{% endmacro %}

0 comments on commit 8423ed0

Please sign in to comment.