From 210d53242353b4d7ad940276d81829de7d531d7f Mon Sep 17 00:00:00 2001 From: flytrap Date: Thu, 14 Nov 2024 15:37:30 +0800 Subject: [PATCH] fix: create materialized view on cluster --- dbt/adapters/clickhouse/relation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/adapters/clickhouse/relation.py b/dbt/adapters/clickhouse/relation.py index 8ad3b39a..a75a1e45 100644 --- a/dbt/adapters/clickhouse/relation.py +++ b/dbt/adapters/clickhouse/relation.py @@ -82,7 +82,7 @@ def get_on_cluster( ) -> bool: if cluster.strip(): return ( - materialized in ('view', 'dictionary') + materialized in ('materialized_view', 'view', 'dictionary') or 'distributed' in materialized or 'Replicated' in engine )