-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
Hello! I have some standard tests in my project, starting with dbt-fabric 1.8 this is what's happening:
- Create a standard built in test
- Run that test
- Expect: test does not need to create a view or anything; it's transient
- Results, a view is attempted to be created. Seems to be related to this: https://github.com/microsoft/dbt-fabric/blame/adf9f8d6557e41eaae8ddacc14a08c057d67a687/dbt/include/fabric/macros/materializations/tests/helpers.sql#L5
EXEC('create view
dbt_eongaro_tests_schema.testview_4608
as
with all_values as (
select
region as value_field,
count(*) as n_records
from "sa_demo"."dbt_eongaro"."dim_customers"
group by region
)
select *
from all_values
where value_field not in (
''AFRICA'',''MIDDLE EAST'',''ASIA'',''EUROPE'',''AMERICA''
)
;')
select
count(*) as failures,
case when count(*) != 0
then 'true' else 'false' end as should_warn,
case when count(*) != 0
then 'true' else 'false' end as should_error
from (
select * from
dbt_eongaro_tests_schema.testview_4608
) dbt_internal_test;
EXEC('drop view
dbt_eongaro_tests_schema.testview_4608
;')
15:12:06 Opening a new connection, currently in state closed
15:12:06 fabric adapter: Using connection string: DRIVER={ODBC Driver 18 for SQL Server};SERVER=5xxoty5si6telax6vdkh6id534-fjebxqqv6kvexcr6vmlnwsjs2e.datawarehouse.pbidedicated.windows.net;Database=sa_demo;Authentication=ActiveDirectoryServicePrincipal;UID={ca9252f9-6361-4d5e-af31-8587eca1a429};PWD=***;encrypt=Yes;TrustServerCertificate=No;APP=dbt-fabric/1.8.2;ConnectRetryCount=1
15:12:08 fabric adapter: Connected to db: sa_demo
15:12:08 fabric adapter: Database error: ('42000', '[42000] [Microsoft][ODBC Driver 18 for SQL Server][SQL Server]The specified schema name "dbt_eongaro_tests_schema" either does not exist or you do not have permission to use it. (2760) (SQLExecDirectW)')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels