-
Notifications
You must be signed in to change notification settings - Fork 79
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
v0.4.1 - Database Error when using expect_no_rows
#199
Comments
expect_no_rows
expect_no_rows
Hi @oscarrobinson, please check v0.4.11 to see if it fixed your issue. Thank you 👍 |
Thank you for your prompt reply @psousa50 I've retried with v0.4.11. Unfortunately I now have a new error. With the same setup as before running:
Now outputs:
|
@oscarrobinson, please try this version and let me know if it worked:
Just replace your v0.4.11 version with the one above and run Thanks |
That works 😄 Thank you! |
Great! I'll create a release 0.4.12 with this. Thank you again for your support! |
First off, thank you for making this library, it is absolutely brilliant!
I believe I've found a bug with the new
expect_no_rows
macro.Whenever I try and use the
expect_no_rows
assertion I get a database error due to a syntax error in the generated SQL.This is occuring running against BigQuery on the latest version of dbt-unit-testing (v0.4.1).
I can reproduce with a minimal example:
Running the following:
Gives the following output:
After running build:
I can see the following output in the target directory:
Hopefully this is enough info for the bug to be fixed or for you to tell me what I'm doing wrong.
The text was updated successfully, but these errors were encountered: