Skip to content

Commit

Permalink
fix: #755 - add whitespace control to generate_surrogate_key macro (#756
Browse files Browse the repository at this point in the history
)

Co-authored-by: kirill.avilenko.kitopi <[email protected]>
  • Loading branch information
akv-akv and kirill.avilenko.kitopi authored Jan 25, 2023
1 parent 52d9bb5 commit eaa0e41
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions macros/sql/generate_surrogate_key.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

{%- macro default__generate_surrogate_key(field_list) -%}

{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}
{% set default_null_value = "" %}
{% else %}
{% set default_null_value = '_dbt_utils_surrogate_key_null_'%}
{% endif %}
{%- if var('surrogate_key_treat_nulls_as_empty_strings', False) -%}
{%- set default_null_value = "" -%}
{%- else -%}
{%- set default_null_value = '_dbt_utils_surrogate_key_null_' -%}
{%- endif -%}

{%- set fields = [] -%}

Expand Down

0 comments on commit eaa0e41

Please sign in to comment.