Skip to content

Commit

Permalink
Use defer_relation for unit test type detection if available (#60)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Alfare <[email protected]>
  • Loading branch information
jtcohen6 and mikealfare authored Feb 2, 2024
1 parent 609fe46 commit 154ca61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% set default_row = {} %}

{%- if not column_name_to_data_types -%}
{%- set columns_in_relation = adapter.get_columns_in_relation(this) -%}
{%- set columns_in_relation = adapter.get_columns_in_relation(defer_relation or this) -%}
{%- set column_name_to_data_types = {} -%}
{%- for column in columns_in_relation -%}
{%- do column_name_to_data_types.update({column.name: column.dtype}) -%}
Expand Down

0 comments on commit 154ca61

Please sign in to comment.