Skip to content

Commit 2c6ef66

Browse files
Update the derivation of the test view name
Use the local MD5 macro to create a more unique hash based on the SQL of the test itself
1 parent 0330613 commit 2c6ef66

File tree

1 file changed

+1
-1
lines changed
  • dbt/include/sqlserver/macros/materializations

1 file changed

+1
-1
lines changed

dbt/include/sqlserver/macros/materializations/tests.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
END
99

1010
{% set testview %}
11-
[{{ target.schema }}.testview_{{ range(1300, 19000) | random }}]
11+
[{{ target.schema }}.testview_{{ local_md5(main_sql) }}]
1212
{% endset %}
1313

1414
{% set sql = main_sql.replace("'", "''")%}

0 commit comments

Comments
 (0)