Skip to content

Commit 6cb132f

Browse files
committed
Fix model config for snapshots
1 parent 1c55b81 commit 6cb132f

File tree

1 file changed

+3
-4
lines changed
  • dbt/include/oracle/macros/materializations/snapshot

1 file changed

+3
-4
lines changed

dbt/include/oracle/macros/materializations/snapshot/snapshot.sql

+3-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
{% macro oracle__snapshot_staging_table(strategy, source_sql, target_relation) -%}
4545

46-
{% set columns = config.get('snapshot_meta_column_names') or get_snapshot_table_column_names() %}
46+
{% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}
4747
{% if strategy.hard_deletes == 'new_record' %}
4848
{% set new_scd_id = snapshot_hash_arguments([columns.dbt_scd_id, snapshot_get_time()]) %}
4949
{% endif %}
@@ -212,7 +212,7 @@
212212

213213

214214
{% macro oracle__build_snapshot_table(strategy, sql) %}
215-
{% set columns = config.get('snapshot_meta_column_names') or get_snapshot_table_column_names() %}
215+
{% set columns = config.get('snapshot_table_column_names') or get_snapshot_table_column_names() %}
216216

217217
select sbq.*,
218218
{{ strategy.scd_id }} as {{ columns.dbt_scd_id }},
@@ -259,7 +259,6 @@
259259

260260

261261
{% materialization snapshot, adapter='oracle' %}
262-
{%- set config = model['config'] -%}
263262

264263
{%- set target_table = model.get('alias', model.get('name')) -%}
265264

@@ -301,7 +300,7 @@
301300

302301
{% else %}
303302

304-
{% set columns = config.get("snapshot_meta_column_names") or get_snapshot_table_column_names() %}
303+
{% set columns = config.get("snapshot_table_column_names") or get_snapshot_table_column_names() %}
305304

306305
{{ adapter.assert_valid_snapshot_target_given_strategy(target_relation, columns, strategy) }}
307306

0 commit comments

Comments
 (0)