Skip to content

Commit

Permalink
Merge pull request #214 from lynxcare/fix-issue-dbt-test-source-name-…
Browse files Browse the repository at this point in the history
…with-spaces

Fix #213 - dbt test error when source name contains spaces and/or dots
  • Loading branch information
sdebruyn authored Jun 7, 2022
2 parents 3f0c1e0 + 8588540 commit bc75fc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbt/include/sqlserver/macros/adapters/indexes.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro sqlserver__create_clustered_columnstore_index(relation) -%}
{%- set cci_name = relation.schema ~ '_' ~ relation.identifier ~ '_cci' -%}
{%- set cci_name = (relation.schema ~ '_' ~ relation.identifier ~ '_cci') | replace(".", "") | replace(" ", "") -%}
{%- set relation_name = relation.schema ~ '_' ~ relation.identifier -%}
{%- set full_relation = relation.schema ~ '.' ~ relation.identifier -%}
{%- set full_relation = '"' ~ relation.schema ~ '"."' ~ relation.identifier ~ '"' -%}
use [{{ relation.database }}];
if EXISTS (
SELECT * FROM
Expand Down

0 comments on commit bc75fc0

Please sign in to comment.