Skip to content

Commit

Permalink
Fix the delete expression #12
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov committed Jul 25, 2021
1 parent fa98ade commit 07d6c1d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
{%- set dest_cols_csv = dest_columns | map(attribute='quoted') | join(', ') -%}

{%- if unique_key is not none -%}
delete
from {{ target_relation }}
alter table {{ target_relation }} {{ on_cluster_clause(label="on cluster") }} delete
where ({{ unique_key }}) in (
select ({{ unique_key }})
from {{ tmp_relation }}
Expand Down

0 comments on commit 07d6c1d

Please sign in to comment.