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("'", "''")%}