Skip to content

Commit

Permalink
Merge pull request #199 from ScalefreeCOM/remove-hasdiff-params-from-…
Browse files Browse the repository at this point in the history
…concattenated_standardise

Update hash.sql, remove hashdiff parameters from concattenated_standardise
  • Loading branch information
tkiehn authored Jul 9, 2024
2 parents 0df6de8 + e5fbca0 commit fbcfa42
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions macros/supporting/hash.sql
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@
{%- if is_hashdiff and datavault4dbt.is_something(multi_active_key) -%}
{%- set std_dict = fromjson(datavault4dbt.multi_active_concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key, multi_active_key=multi_active_key, main_hashkey_column=main_hashkey_column)) -%}
{%- elif is_hashdiff -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key,is_hashdiff=is_hashdiff, rtrim_hashdiff=rtrim_hashdiff)) -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key)) -%}
{%- else -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashkey_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key,is_hashdiff=is_hashdiff, rtrim_hashdiff=rtrim_hashdiff)) -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashkey_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key)) -%}
{%- endif -%}

{%- set standardise_prefix = std_dict['standardise_prefix'] -%}
Expand Down Expand Up @@ -325,9 +325,9 @@
{%- if is_hashdiff and datavault4dbt.is_something(multi_active_key) -%}
{%- set std_dict = fromjson(datavault4dbt.multi_active_concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key, multi_active_key=multi_active_key, main_hashkey_column=main_hashkey_column)) -%}
{%- elif is_hashdiff -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key,is_hashdiff=is_hashdiff, rtrim_hashdiff=rtrim_hashdiff)) -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashdiff_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key)) -%}
{%- else -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashkey_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key,is_hashdiff=is_hashdiff, rtrim_hashdiff=rtrim_hashdiff)) -%}
{%- set std_dict = fromjson(datavault4dbt.concattenated_standardise(case_sensitive=hashkey_input_case_sensitive, hash_alg=hash_alg, datatype=hash_dtype, alias=alias, zero_key=unknown_key)) -%}
{%- endif -%}

{%- set standardise_prefix = std_dict['standardise_prefix'] -%}
Expand Down Expand Up @@ -361,4 +361,4 @@

{%- endfor -%}

{%- endmacro -%}
{%- endmacro -%}

0 comments on commit fbcfa42

Please sign in to comment.