From c874ae5537a16eb3cd3bab9c60b2f55165b62c04 Mon Sep 17 00:00:00 2001 From: Freia Vercruysse Date: Tue, 7 Jun 2022 14:09:42 +0200 Subject: [PATCH] put back original relation_name --- dbt/include/sqlserver/macros/adapters/indexes.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/include/sqlserver/macros/adapters/indexes.sql b/dbt/include/sqlserver/macros/adapters/indexes.sql index da028e1c..304dcf5a 100644 --- a/dbt/include/sqlserver/macros/adapters/indexes.sql +++ b/dbt/include/sqlserver/macros/adapters/indexes.sql @@ -1,6 +1,6 @@ {% macro sqlserver__create_clustered_columnstore_index(relation) -%} {%- set cci_name = (relation.schema ~ '_' ~ relation.identifier ~ '_cci') | replace(".", "") | replace(" ", "") -%} - {%- set relation_name = '"' ~ relation.schema ~ '"."' ~ relation.identifier ~ '"' -%} + {%- set relation_name = relation.schema ~ '_' ~ relation.identifier -%} {%- set full_relation = '"' ~ relation.schema ~ '"."' ~ relation.identifier ~ '"' -%} use [{{ relation.database }}]; if EXISTS (