Skip to content

Commit

Permalink
Merge pull request #79 from emnify/main
Browse files Browse the repository at this point in the history
Update select_column function for redshift super type
  • Loading branch information
bcodell authored Jan 10, 2025
2 parents 3cc7834 + 596a2dc commit 8249a09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions macros/activity_schema/dataset/select_column.sql
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ json_value({{ json_col }}.{{key}})
{%- macro snowflake__json_extract(json_col, key) -%}
to_varchar(get_path({{json_col}}, '{{key}}'))
{%- endmacro -%}

{%- macro redshift__json_extract(json_col, key) -%}
CAST({{json_col}}.{{key}} AS varchar)
{%- endmacro -%}

0 comments on commit 8249a09

Please sign in to comment.