-
Notifications
You must be signed in to change notification settings - Fork 15
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
dbFetch n
is ignored while mocking databases.
#101
Comments
Hello, thanks for the detailed report. I've not used First and most simply, that warning is something that you can probably ignore / suppress in this case if the test runs otherwise, and your expectations can all run on the ten rows. What's going on internally is that Side note: I tried to recreate the warning using You can also setup your tests to not use
And then for your test use the same code, but minus the
When you run this chunk above the first time you might get an error like. This is because the query has changed so the hash for the fixture has also changed. You can simply rename the fixture above (here it was called
It's actually possible with athena that the query doesn't change if it's using I know that this process above is a bit clunky, and something I am thinking about ways to improve. Let me know if this doesn't work for you and I can dig in a little bit more into the specifics of athena here. |
Thanks for the response! I tried the remove Up to you if you want to leave the issue open or not. I'd be interested in knowing when a built-in solution is available, FWIW. Thanks again! |
I'll keep it open as a reminder to myself to try against an Athena backend myself and see if I can find why that warning is still popping up. Thanks again for the report! |
Hello! Firstly, thanks for working on this package. I am very excited about it!
I'm getting a warning from testthat when my query involves dplyr and
head()
to limit the size of my query. Is there a workaround? Given the need to callcollect()
in the test, this could result in a large SELECT-* file.Test code:
Warning:
Thanks again!
The text was updated successfully, but these errors were encountered: