-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in 1.7.2rc2 - WITH inside custom tests #470
Comments
@matsonj |
The custom test appropriately uses as CTE. The problem is in 1.4 (previous version), the test was first added as a view and then executed. In 1.7, the test is tested directly with a subquery, which means you cannot use CTEs inside of custom tests. |
@pl-pr I will provide more notes here shortly. Thanks for the feedback |
@matsonj unfortunately it's because of the dependency to dbt-fabric. This, like many other errors, is fixed in the version 1.8.0 |
I've pushed a changed to swap it to using a regex search instead of the |
Should be closed by #518 |
When invoking custom tests in the previous version, the generated SQL looks like this:
however, in 1.7.2rc2, it generates SQL like this:
Since it is dropping the raw SQL query into the executed SQL query, this breaks any custom tests that use CTEs.
Workaround: Don't use CTEs in custom tests.
The text was updated successfully, but these errors were encountered: