In the latest release of dbt_constraints (1.0.5) we have noticed that our tests are failing.
Upon invesitgation, we have found that it is caused by the test compiling with two alias for the subquery:
select
child.product_id
from (select * from warehouse.dev.items where product_id not like 'S%' and product_id not in (list)) dbt_subquery child
We are running this dbt build locally.
We would appreaciate help to resolve this issue.