diff --git a/dbt/include/vertica/macros/materializations/clone.sql b/dbt/include/vertica/macros/materializations/clone.sql index a7649cd..550fa65 100644 --- a/dbt/include/vertica/macros/materializations/clone.sql +++ b/dbt/include/vertica/macros/materializations/clone.sql @@ -7,6 +7,7 @@ {% 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 }}