Skip to content

Commit

Permalink
Fixed clone implementation (#119)
Browse files Browse the repository at this point in the history
Co-authored-by: nrodriguezmicrofocus <[email protected]>
Co-authored-by: nrodriguezmicrofocus <[email protected]>
  • Loading branch information
3 people authored Nov 30, 2023
1 parent 8ae11fe commit 67526e5
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions dbt/include/vertica/macros/materializations/clone.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,5 @@


{% macro vertica__create_or_replace_clone(this_relation, defer_relation) %}


DROP TABLE IF EXISTS {{this_relation}};
create table
{{ this_relation }} as select * from
{{ defer_relation }}


SELECT COPY_TABLE ( {{ "'"+defer_relation|replace('"','')+"'"}}, {{ "'"+this_relation|replace('"','')+"'"}} );
{% endmacro %}

0 comments on commit 67526e5

Please sign in to comment.