Getting the following error when trying to run unit tests with model having a recursive CTE
Runtime Error
Database Error in model_example (tests/unit/model_example.sql)
WITH RECURSIVE is only allowed at the top level of the SELECT, CREATE TABLE AS SELECT, CREATE VIEW, INSERT, EXPORT DATA statements.
Within the generated test SQL, the recursive CTE is no longer at the top level which invalidates the query.
Is there a way to handle this?