Closed chrissuh17 closed 4 years ago
Hi @chrissuh17 perfect :) I know the issue now :D Both RAthena
and noctua
create the class AthenaConnection
however they work slightly differently under the hood. RAthena
uses python's
boto3
and noctua
uses R's
paws
.
So what is happening is R is getting confused what class to use. So if you remove RAthena
from your loaded packages noctua
should work for example:
library(DBI)
# using aws/credentials file to store credentials, modify this if needed
con <- dbConnect(noctua::athena())
dbGetQuery(con, "select * from some_tbl")
Please give the above code (with your own table) a try in a new R session and tell me if it resolves the issue :)
It's working now! Thank you very much for your help.
Happy to help, I hope you enjoy using the package. Please feel free to raise any feature requests :)
Will close this ticket now :)
Hello Dyfan,
I raised this question on stackoverflow.com as @datascientist2117; thank you for your response.
Here is the code I currently have.
All code above is exactly the same except for the omitted values in S3OutPutLocation, AwsRegion, and Schema.
I am currently using Simba Athena ODBC Driver Version 1.1.2
I hope this information is sufficient; please let me know if there is anything else I can provide!