You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the macro fabric__get_test_sql in macros/materializations/tests/helpers.sql, the schema for the temporary testview is hardcoded as dbo.testview_{{ range(1300, 19000) | random}}.
See
This breaks in the situation where dbt does not have access to the dbo schema, or the preferred schema is something else.
I suggest that this should instead utilize the generate_schema_name macro with a custom schema name.
Possibly with a custom_name to allow redirecting it, or just letting it fall through to place the testview in the default schema.
Maybe something like
{% set testview %}
{{ generate_schema_name('tests_schema' }}.testview_{{ range(1300, 19000) | random }}
{% endset %}
Or the sensible way of not providing any custom schema name in which case we just get whatever the target profile uses.
The text was updated successfully, but these errors were encountered:
In the macro
fabric__get_test_sql
in macros/materializations/tests/helpers.sql, the schema for the temporary testview is hardcoded asdbo.testview_{{ range(1300, 19000) | random}}
.See
dbt-fabric/dbt/include/fabric/macros/materializations/tests/helpers.sql
Lines 4 to 6 in a97aa2f
This breaks in the situation where dbt does not have access to the dbo schema, or the preferred schema is something else.
I suggest that this should instead utilize the generate_schema_name macro with a custom schema name.
Possibly with a custom_name to allow redirecting it, or just letting it fall through to place the testview in the default schema.
Maybe something like
Or the sensible way of not providing any custom schema name in which case we just get whatever the target profile uses.
The text was updated successfully, but these errors were encountered: