Skip to content

Commit

Permalink
Use get_snapshot_table_column_names macro
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Sep 16, 2024
1 parent 402265a commit cc960f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/include/spark/macros/materializations/snapshot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@

{% else %}

{% set snapshot_table_column_names = config.get("snapshot_table_column_names") %}
{% set stcn = config.get("snapshot_table_column_names") or get_snapshot_table_column_names() %}

{{ adapter.valid_snapshot_target(target_relation, snapshot_table_column_names) }}
{{ adapter.valid_snapshot_target(target_relation, stcn) }}

{% set staging_table = spark_build_snapshot_staging_table(strategy, sql, target_relation) %}

Expand Down

0 comments on commit cc960f3

Please sign in to comment.