Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Snapshot Merge Query #385

Merged
merged 11 commits into from
Jan 6, 2025
6 changes: 6 additions & 0 deletions .changes/unreleased/Fixes-20241217-163126.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Fixes
body: Fix the snapshot merge query for several adapters in new_record mode.
time: 2024-12-17T16:31:26.970526-05:00
custom:
Author: peterallenwebb
Issue: "385"
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'
adrianburusdbt marked this conversation as resolved.
Show resolved Hide resolved

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