Skip to content

Commit

Permalink
Added max relation length to Snowflake.
Browse files Browse the repository at this point in the history
  • Loading branch information
elongl authored and dapollak committed Sep 26, 2023
1 parent 45a198c commit 75eddb4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion macros/utils/table_operations/get_relation_max_length.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@
{{ return(adapter.dispatch('get_relation_max_name_length', 'elementary')()) }}
{% endmacro %}

{# Snowflake and BigQuery #}
{% macro default__get_relation_max_name_length(temporary, relation, sql_query) %}
{{ return(none) }}
{% endmacro %}

{% macro snowflake__get_relation_max_name_length(temporary, relation, sql_query) %}
{{ return(255) }}
{% endmacro %}

{% macro redshift__get_relation_max_name_length(temporary, relation, sql_query) %}
{{ return(127) }}
{% endmacro %}
Expand Down

0 comments on commit 75eddb4

Please sign in to comment.