-
Notifications
You must be signed in to change notification settings - Fork 5
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
dbGetQuery with adbcsnowflake crash #4
Comments
Thanks. Is this still a problem with more recent package versions? CC @paleolimbot @lidavidm . |
Thank you for reporting! As Kirill noted, number of these packages have been updated...in particular It would also be useful to see if this crashes without invoking adbi. For example: library(adbcdrivermanager)
uri <- "SECRET"
adbi_con <- adbc_database_init(adbcsnowflake::adbcsnowflake(), uri = uri) |> adbc_connection_init()
write_adbc(datasets::swiss, adbi_con, "SWISS")
read_adbc(adbi_con, "SELECT * from SWISS") |
Hi, The adbcdrivermanager code works fine library(adbcdrivermanager)
uri <- "SECRET"
adbi_con <- adbc_database_init(adbcsnowflake::adbcsnowflake(), uri = uri) |> adbc_connection_init()
write_adbc(datasets::swiss, adbi_con, "SWISS4")
read_adbc(adbi_con, "SELECT * from SWISS4")
However the adbi code still doesn't work library(adbi)
uri <- "SECRET"
adbi_con <- dbConnect(adbi::adbi("adbcsnowflake::adbcsnowflake"), uri = uri)
dbWriteTable(adbi_con, "SWISS3", datasets::swiss) # works
dbGetQuery(adbi_con, "SELECT * from SWISS3") # crashes
|
I think you may have to run |
yep, |
Thanks. @klin333: Can you please try dbGetQuery(adbi_con, "SELECT * from SWISS3", immediate = TRUE) ? @paleolimbot: Is there a way to tell if a particular ADBI driver supports parameterized queries, other than trying? |
I don't think so. If this is critical, we could add the ability to return some R-level "capabilities" from the driver packages. |
I wouldn't be opposed to adding actual bits to query that information to GetInfo |
It took me a second to remember where it was, but we do have a slightly out-of-date version of this in our documentation: https://arrow.apache.org/adbc/current/driver/status.html . |
Thanks. I think DBI needs this info for queries to "just work". |
Filed apache/arrow-adbc#1793 |
Yep, |
hi everyone, really appreciate the help on this one. wonder if there's any ways to progress this issue? i understand that setting |
dbGetQuery with ADBC Snowflake connection (adbcsnowflake) crashes.
A quick fix is here: https://github.com/klin333/adbi/tree/fix_snowflake
However, I think this will just hide and work-around the problem without solving the root cause. Also it fails a bunch of tests.
sessionInfo()
The text was updated successfully, but these errors were encountered: