From 4525157bba62d3df52f9a42e803920c0fee9d681 Mon Sep 17 00:00:00 2001 From: sachinthakur96 Date: Wed, 8 Nov 2023 13:32:54 +0530 Subject: [PATCH] Adding --- dbt/include/vertica/macros/materializations/clone.sql | 1 + 1 file changed, 1 insertion(+) 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 }}