File tree 1 file changed +3
-4
lines changed
dbt/include/oracle/macros/materializations/snapshot
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 43
43
44
44
{% macro oracle__snapshot_staging_table(strategy, source_sql, target_relation) - %}
45
45
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() %}
47
47
{% if strategy .hard_deletes == ' new_record' %}
48
48
{% set new_scd_id = snapshot_hash_arguments([columns .dbt_scd_id , snapshot_get_time()]) %}
49
49
{% endif %}
212
212
213
213
214
214
{% 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() %}
216
216
217
217
select sbq.* ,
218
218
{{ strategy .scd_id }} as {{ columns .dbt_scd_id }},
259
259
260
260
261
261
{% materialization snapshot, adapter= ' oracle' %}
262
- {%- set config = model[' config' ] - %}
263
262
264
263
{%- set target_table = model .get (' alias' , model .get (' name' )) - %}
265
264
301
300
302
301
{% else %}
303
302
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() %}
305
304
306
305
{{ adapter .assert_valid_snapshot_target_given_strategy (target_relation, columns, strategy) }}
307
306
You can’t perform that action at this time.
0 commit comments