Closed CamronBorealis closed 1 month ago
Steps to reproduce:
Expected result:
Actual result:
Sample test code reporting error:
with failures as ( select * from {{ model }} where {{ column_name }} is null ) select * from failures
Sample test code that reports pass/fail:
Suspected root cause:
This regex expression assumes the code style includes the "with" keyword on the same line as the identifier of the CTE:
https://github.com/dbt-msft/dbt-sqlserver/blob/be032aac1c964a5a7291fdcb3d0a6f28fe383a30/dbt/include/sqlserver/macros/materializations/tests.sql#L10
Good catch. I’m wondering if it’s better anyways to just create a view every time instead of this branching logic.
Will tackle this later today or tomorrow.
Steps to reproduce:
Expected result:
Actual result:
Sample test code reporting error:
Sample test code that reports pass/fail:
Suspected root cause:
This regex expression assumes the code style includes the "with" keyword on the same line as the identifier of the CTE:
https://github.com/dbt-msft/dbt-sqlserver/blob/be032aac1c964a5a7291fdcb3d0a6f28fe383a30/dbt/include/sqlserver/macros/materializations/tests.sql#L10