Skip to content

Commit 91ecc8d

Browse files
committed
databricks: use string_default_dtype() in stage and rec_track_sat
1 parent 07518e8 commit 91ecc8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

macros/staging/databricks/stage.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
{% set error_value_rsrc = var('datavault4dbt.default_error_rsrc', 'ERROR') %}
178178
{% set unknown_value_rsrc = var('datavault4dbt.default_unknown_rsrc', 'SYSTEM') %}
179179

180-
{# Setting the rsrc default datatype and length #}
181-
{% set rsrc_default_dtype = var('datavault4dbt.rsrc_default_dtype', 'STRING') %}
180+
{# Setting the rsrc default datatype #}
181+
{% set rsrc_default_dtype = datavault4dbt.string_default_dtype(type=rsrc) %}
182182

183183
WITH
184184

macros/tables/databricks/rec_track_sat.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
{%- set rsrc_unknown = var('datavault4dbt.default_unknown_rsrc', 'SYSTEM') -%}
99
{%- set rsrc_error = var('datavault4dbt.default_error_rsrc', 'ERROR') -%}
1010

11-
{# Setting the rsrc and stg_alias default datatype and length #}
12-
{%- set rsrc_default_dtype = var('datavault4dbt.rsrc_default_dtype', 'STRING') -%}
13-
{%- set stg_default_dtype = var('datavault4dbt.stg_default_dtype', 'STRING') -%}
11+
{# Setting the rsrc and stg_alias default datatypes #}
12+
{%- set rsrc_default_dtype = datavault4dbt.string_default_dtype(type=rsrc) -%}
13+
{%- set stg_default_dtype = datavault4dbt.string_default_dtype(type=stg) -%}
1414
{%- set ns = namespace(last_cte = '', source_included_before = {}, source_models_rsrc_dict={}, has_rsrc_static_defined=true) -%}
1515

1616
{%- if source_models is not mapping and not datavault4dbt.is_list(source_models) -%}

0 commit comments

Comments
 (0)