Skip to content

Commit

Permalink
Adjust the wrapper parenthesis around the table materialization sql c…
Browse files Browse the repository at this point in the history
…ode (#212)
  • Loading branch information
kris947 authored Nov 27, 2023
1 parent 5e8e54b commit 588e5ca
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dbt/include/clickhouse/macros/materializations/table.sql
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@
{{ order_cols(label="order by") }}
{{ partition_cols(label="partition by") }}
{{ adapter.get_model_settings(model) }}
as ( {{ sql }} )
as (
{{ sql }}
)
{%- else %}
create table {{ relation.include(database=False) }}
{{ on_cluster_clause(relation)}}
Expand All @@ -171,7 +173,9 @@
{%- if not adapter.is_before_version('22.7.1.2484') %}
empty
{%- endif %}
as ( {{ sql }} )
as (
{{ sql }}
)
{%- endif %}
{%- endif %}

Expand Down

0 comments on commit 588e5ca

Please sign in to comment.