diff --git a/dbt/include/fabric/macros/materializations/tests/helpers.sql b/dbt/include/fabric/macros/materializations/tests/helpers.sql index 4f04547..1dda612 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_{{ local_md5(model.name ~ invocation_id) }}] {% endset %} {% set sql = main_sql.replace("'", "''")%}