Skip to content

Commit

Permalink
Merge pull request #2 from SMeltser/correct_backup_param_order
Browse files Browse the repository at this point in the history
set BACKUP parameter before dist/sort keys
  • Loading branch information
SMeltser authored Jan 11, 2022
2 parents cf996eb + 7bf722b commit aac2967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/redshift/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@

create {% if temporary -%}temporary{%- endif %} table
{{ relation.include(database=(not temporary), schema=(not temporary)) }}
{% if backup == false -%}backup no{%- endif %}
{{ dist(_dist) }}
{{ sort(_sort_type, _sort) }}
{% if backup == false -%}backup no{%- endif %}
as (
{{ sql }}
);
Expand Down

0 comments on commit aac2967

Please sign in to comment.