Skip to content

Commit

Permalink
Change redshift diststyle behavior (#2246)
Browse files Browse the repository at this point in the history
  * Don't provide a diststyle to redshift tables when configured as "auto"
  • Loading branch information
rodrigodelmonte committed Apr 6, 2020
1 parent 5c69890 commit 957e6f5
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 957e6f5

Please sign in to comment.