Skip to content

Commit

Permalink
Add an override spot for dbt redshift to throw an error when a None v…
Browse files Browse the repository at this point in the history
…alue is found.
  • Loading branch information
VersusFacit committed Jul 22, 2024
1 parent b2dcdc3 commit 7cb7706
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{%- do default_row.update({column_name: (safe_cast("null", column_type) | trim )}) -%}
{%- endfor -%}

{%- validate_row(rows, 0) -%}
{{ validate_fixture_rows(rows, row_number) }}

{%- for row in rows -%}
{%- set formatted_row = format_row(row, column_name_to_data_types) -%}
Expand Down Expand Up @@ -95,10 +95,10 @@ union all
{{ return(formatted_row) }}
{%- endmacro -%}

{%- macro validate_fixture_rows(rows, row_number) -%}
{{ return(adapter.dispatch('validate_fixture_rows', 'dbt')(rows, row_number)) }}
{%- endmacro -%}


{%- macro validate_row(rows, row_number) -%}
{{ log(rows, info=True) }}
{%- if rows -%}
{%- endif -%}
{%- macro default__validate_fixture_rows(rows, row_number) -%}
{# This is an abstract method for adapter overrides as needed #}
{%- endmacro -%}

0 comments on commit 7cb7706

Please sign in to comment.