From faa2cb0ddbc1476735cbb86f582d01bbf17f680f Mon Sep 17 00:00:00 2001 From: Pradeep Srikakolapu Date: Wed, 26 Jun 2024 21:49:31 -0700 Subject: [PATCH] Addressed #197 --- CHANGELOG.md | 1 + dbt/include/fabric/macros/materializations/tests/helpers.sql | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 778c9e6..f300748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Handling temp tables in incremental models #188 * Add label support to filter queries #181 * Addressed bug - incremental models cannot full refresh #179 +* Addressed bug - #197, dbt test incorrect syntax with macro helpers.sql ### v1.8.0rc2 diff --git a/dbt/include/fabric/macros/materializations/tests/helpers.sql b/dbt/include/fabric/macros/materializations/tests/helpers.sql index 9e4b057..4f04547 100644 --- a/dbt/include/fabric/macros/materializations/tests/helpers.sql +++ b/dbt/include/fabric/macros/materializations/tests/helpers.sql @@ -9,7 +9,7 @@ {% if main_sql.strip().lower().startswith('with') %} {% set testview %} - {{ target.schema }}.testview_{{ range(1300, 19000) | random }} + [{{ target.schema }}.testview_{{ range(1300, 19000) | random }}] {% endset %} {% set sql = main_sql.replace("'", "''")%}