Skip to content

Commit

Permalink
Fix an issue with the snapshot merge query affecting several adapters…
Browse files Browse the repository at this point in the history
… in new record mode.
  • Loading branch information
peterallenwebb committed Dec 17, 2024
1 parent e3964d7 commit 3c2f01f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

merge into {{ target.render() }} as DBT_INTERNAL_DEST
using {{ source }} as DBT_INTERNAL_SOURCE
on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }}
on DBT_INTERNAL_SOURCE.{{ columns.dbt_scd_id }} = DBT_INTERNAL_DEST.{{ columns.dbt_scd_id }} and DBT_INTERNAL_SOURCE.dbt_change_type != 'insert'

when matched
{% if config.get("dbt_valid_to_current") %}
Expand Down

0 comments on commit 3c2f01f

Please sign in to comment.