Skip to content

Commit

Permalink
Don't provide a diststyle to redshift tables when diststyle is config…
Browse files Browse the repository at this point in the history
…ured as "auto" (dbt-labs#2246)
  • Loading branch information
rodrigodelmonte committed Apr 3, 2020
1 parent 5c69890 commit 87130dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/redshift/dbt/include/redshift/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
{%- if dist is not none -%}
{%- set dist = dist.strip().lower() -%}

{%- if dist in ['all', 'even', 'auto'] -%}
{%- if dist in ['all', 'even'] -%}
diststyle {{ dist }}
{%- elif dist == "auto" -%}
{%- else -%}
diststyle key distkey ({{ dist }})
{%- endif -%}
Expand Down

0 comments on commit 87130dd

Please sign in to comment.