Skip to content

Commit

Permalink
Update unpivot.sql
Browse files Browse the repository at this point in the history
## Context

Related to [issue-216](dbt-labs#216)
  • Loading branch information
m-01101101 authored Apr 9, 2021
1 parent ceb2849 commit f69d89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/sql/unpivot.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Arguments:
{%- endfor %}

cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},
cast({{ col.column }} as {{ cast_to }}) as {{ value_name }}
cast('{{ col.column }}' as {{ cast_to }}) as {{ value_name }}

from {{ relation }}

Expand Down

0 comments on commit f69d89c

Please sign in to comment.