From 8157a5a16050ff118738863363cb0dfdfa6780c7 Mon Sep 17 00:00:00 2001 From: Peter Allen Webb Date: Fri, 22 Nov 2024 11:34:20 -0500 Subject: [PATCH] Tweak column name. --- .../macros/materializations/snapshots/helpers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/global_project/macros/materializations/snapshots/helpers.sql b/dbt/include/global_project/macros/materializations/snapshots/helpers.sql index 4004c65d..33492cc9 100644 --- a/dbt/include/global_project/macros/materializations/snapshots/helpers.sql +++ b/dbt/include/global_project/macros/materializations/snapshots/helpers.sql @@ -164,7 +164,7 @@ snapshotted_data.{{ key }} as dbt_unique_key_{{ loop.index }}, {% endfor -%} {%- else -%} - snapshotted_data.{{ strategy.unique_key }} as dbt_unique_key, + snapshotted_data.dbt_unique_key as dbt_unique_key, {% endif -%} {{ snapshot_get_time() }} as {{ columns.dbt_valid_from }}, {{ snapshot_get_time() }} as {{ columns.dbt_updated_at }},