Skip to content

WITH RECURSIVE is only allowed at the top level #198

@jameshorrocks001

Description

@jameshorrocks001

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions