This PR makes two minor changes to fix the issues described in #214. Mainly, it allows passing a bucket path with no key prefix when using the unload = TRUE option in dbGetQuery() and similar functions.
To illustrate, the setup below currently returns correct results:
con <- DBI::dbConnect(noctua::athena(), s3_staging_dir = "s3://temp-bucket/test/")
dbGetQuery(conn = con, "SELECT * FROM test_db", unload = TRUE)
But the following two setups do not:
con <- DBI::dbConnect(noctua::athena(), s3_staging_dir = "s3://temp-bucket/")
dbGetQuery(conn = con, "SELECT * FROM test_db", unload = TRUE)
con <- DBI::dbConnect(noctua::athena(), s3_staging_dir = "s3://temp-bucket")
dbGetQuery(conn = con, "SELECT * FROM test_db", unload = TRUE)
This PR makes two minor changes to fix the issues described in #214. Mainly, it allows passing a bucket path with no key prefix when using the
unload = TRUE
option indbGetQuery()
and similar functions.To illustrate, the setup below currently returns correct results:
But the following two setups do not:
Closes #214.