-
Notifications
You must be signed in to change notification settings - Fork 33
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
Error when using compute() to create a new table in a schema. Same code using connections created with dbConnect() works. #179
Comments
Would you mind filtering your reprex down to the bare minimum that illustrates the issue? |
Hi Hadley, thanks for chiming in. I rewrote the regex to make it a bit shorter and allow it to run on my home computer (windows, R 4.3.1, connecting to postgres database ) instead of my work computer (linux, R 4.0.2, connecting to azure synapse). Lo and behold, on my home computer there is no issue. I'm afraid I can't identify if it's an azure or a linux issue because I can't change these parameters at work.
|
@simon you can remove any credentials from the reprex before positing it, but it's really useful if you can run it (even though I can't) so I can see exactly the error you're seeing. |
Oh maybe the error was in your first repex. Was it this?
In that case, can you please try updating dbplyr to 2.4.0 to see if that makes the problem go away? |
Yes it was, should have made it clearer, sorry. I updated dbplyr to 2.4.0 and got a new error:
same command run on a connection created using dbConnect() still works after updating the packages:
here's my updated session info:
|
Hi everyone,
I am unable to use compute() to run a dbplyr query and save the output into a new table if that table is located in a schema if that connection was created using pool::dbPool().
EDIT: here is the error, to make it more obvious:
The code works if I create the connection using DBI::dbConnect()
Here's the closest I could create to a regexp. It uses Azure (you won't be able to connect) because I am not sure how to create schemas in databases.
The text was updated successfully, but these errors were encountered: