diff --git a/dbt/include/clickhouse/macros/adapters.sql b/dbt/include/clickhouse/macros/adapters.sql index 64e76c0b..52190cf4 100644 --- a/dbt/include/clickhouse/macros/adapters.sql +++ b/dbt/include/clickhouse/macros/adapters.sql @@ -41,7 +41,7 @@ 'Hive' ] -%} - {%- if engine is none or engine.endswith(('MergeTree', 'MergeTree()')) or engine in supported %} + {%- if engine is none or 'MergeTree' in engine or engine in supported %} {%- if cols is not none %} {%- if cols is string -%} {%- set cols = [cols] -%}