Skip to content

dbGetQuery with adbcsnowflake crash #4

@klin333

Description

@klin333

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.

library(DBI)

uri <-  "SECRET"
adbi_con <- dbConnect(adbi::adbi("adbcsnowflake::adbcsnowflake"), uri = uri)
adbi_con
# <AdbiConnection>
# Driver name: ADBC Snowflake Driver - Go
# Driver version: (unknown or development build)
# Driver arrow version: v14.0.0
# Vendor name: Snowflake

dbWriteTable(adbi_con, "SWISS", datasets::swiss) # works
dbGetQuery(adbi_con, "SELECT * from SWISS") # crashes
# Error in adbcdrivermanager::adbc_statement_get_parameter_schema(stmt) :

sessionInfo()

R version 4.3.2 (2023-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)

Matrix products: default


locale:
[1] LC_COLLATE=English_Australia.utf8  LC_CTYPE=English_Australia.utf8    LC_MONETARY=English_Australia.utf8
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.utf8    

time zone: Australia/Sydney
tzcode source: internal

attached base packages:
[1] graphics  grDevices utils     methods   base     

other attached packages:
[1] DBI_1.1.3

loaded via a namespace (and not attached):
 [1] bit_4.0.5                compiler_4.3.2           tools_4.3.2              rstudioapi_0.15.0        adbcsnowflake_0.8.0.9000
 [6] stats_4.3.2              nanoarrow_0.3.0.1        bit64_4.0.5              adbcdrivermanager_0.8.0  adbi_0.0.2              
[11] renv_1.0.3   

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions