From 7f9890f9b6d352c7c6f2b8477d535decaef4dfe7 Mon Sep 17 00:00:00 2001 From: Steven Reitsma <4895139+StevenReitsma@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:22:43 +0100 Subject: [PATCH] Fix creation of replicated tables when using legacy materialization (#208) --- .../macros/materializations/incremental/incremental.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/clickhouse/macros/materializations/incremental/incremental.sql b/dbt/include/clickhouse/macros/materializations/incremental/incremental.sql index 6eddc1d6..a86cafdd 100644 --- a/dbt/include/clickhouse/macros/materializations/incremental/incremental.sql +++ b/dbt/include/clickhouse/macros/materializations/incremental/incremental.sql @@ -180,7 +180,7 @@ {{ create_distributed_local_table(distributed_intermediate_relation, intermediate_relation, existing_relation) }} {% else %} {% call statement('main') %} - create table {{ intermediate_relation }} as {{ new_data_relation }} {{ on_cluster_clause(existing_relation) }} + create table {{ intermediate_relation }} {{ on_cluster_clause(existing_relation) }} as {{ new_data_relation }} {% endcall %} {% endif %}