Skip to content

Commit

Permalink
Adap 821/support for redshift 821 (#270)
Browse files Browse the repository at this point in the history
Co-authored-by: Mila Page <[email protected]>
  • Loading branch information
VersusFacit and VersusFacit authored Jul 23, 2024
1 parent e3465c2 commit b088e51
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
{%- do default_row.update({column_name: (safe_cast("null", column_type) | trim )}) -%}
{%- endfor -%}

{{ 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 @@ -93,3 +94,11 @@ union all
{%- endfor -%}
{{ return(formatted_row) }}
{%- endmacro -%}

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

{%- macro default__validate_fixture_rows(rows, row_number) -%}
{# This is an abstract method for adapter overrides as needed #}
{%- endmacro -%}

0 comments on commit b088e51

Please sign in to comment.