Skip to content

Commit

Permalink
Apply naming suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Rogers <[email protected]>
  • Loading branch information
steffen030 and colin-rogers-dbt authored Dec 2, 2024
1 parent 57814d2 commit 592ab2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@
{{ return({'name': column.name, 'data_type': data_type, 'formatted': formatted}) }}
{%- endmacro -%}

{% macro render_unspecified_column_value(column_type) %}
{{ return(adapter.dispatch('render_unspecified_column_value', 'dbt') (column_type)) }}
{% macro render_column_type(column_type) %}
{{ return(adapter.dispatch('render_column_type', 'dbt') (column_type)) }}
{% endmacro %}

{% macro default__render_unspecified_column_value(column_type) %}
{% macro default__render_column_type(column_type) %}
safe_cast('null', {{column_type}})
{% endmacro %}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
{%- endif -%}

{%- for column_name, column_type in column_name_to_data_types.items() -%}
{%- do default_row.update({column_name: (render_unspecified_column_value(column_type) | trim )}) -%}
{%- do default_row.update({column_name: (render_column_type(column_type) | trim )}) -%}
{%- endfor -%}

{{ validate_fixture_rows(rows, row_number) }}
Expand Down

0 comments on commit 592ab2b

Please sign in to comment.