Skip to content

Commit 0342b6f

Browse files
authored
Merge pull request #457 from dlouseiro/dlouseiro/ensure-subquery-parenthesis-are-never-commented
Add newline around subquery parenthesis used when contract is enabled
2 parents 96c15e8 + 5069224 commit 0342b6f

File tree

1 file changed

+4
-1
lines changed
  • dbt/include/clickhouse/macros/materializations

1 file changed

+4
-1
lines changed

dbt/include/clickhouse/macros/materializations/table.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@
235235
({{ dest_cols_csv }})
236236
{%- if has_contract -%}
237237
-- Use a subquery to get columns in the right order
238-
SELECT {{ dest_cols_csv }} FROM ( {{ sql }} )
238+
SELECT {{ dest_cols_csv }}
239+
FROM (
240+
{{ sql }}
241+
)
239242
{%- else -%}
240243
{{ sql }}
241244
{%- endif -%}

0 commit comments

Comments
 (0)