dbt-sqlserver
dbt-sqlserver copied to clipboard
allow test defs that have CTEs (including those in dbt-core)
given the recent refactor of test in https://github.com/dbt-labs/dbt-core/pull/3261/ for v0.20.0, nested CTE definitions happened. For dbt-sqlserver users, this broke even ootb tests like accepted_values.
rather than having nested CTEs (unsupported in TSQL), #137 proposes a solution of using temp tables to for the error results, then select from the temp table result.