Skip to content

Commit

Permalink
chore(type_helpers): redshift SUPER type for JSON and ARRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
hanslemm committed Oct 21, 2024
1 parent 6ad19c4 commit 2be379f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions macros/database_specific_helpers/type_helpers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
{% endmacro %}

{% macro redshift__type_json() %}
varchar(max)
super
{% endmacro %}

{#- ARRAY -#}

{% macro type_array() %}
{{ return(adapter.dispatch('type_array', 'dbt_artifacts')()) }}
{{ return(adapter.dispatch('type_array', 'dbt_artifacts')()) }}
{% endmacro %}

{% macro default__type_array() %}
Expand All @@ -49,17 +49,17 @@
{% endmacro %}

{% macro redshift__type_array() %}
varchar(max)
super
{% endmacro %}

{% macro type_string() %}
{{ return(adapter.dispatch('type_string', 'dbt_artifacts')()) }}
{{ return(adapter.dispatch('type_string', 'dbt_artifacts')()) }}
{% endmacro %}

{% macro default__type_string() %}
{{ return(api.Column.translate_type("string")) }}
{% endmacro %}

{% macro redshift__type_string() %}
varchar(max)
varchar(max)
{% endmacro %}

0 comments on commit 2be379f

Please sign in to comment.