You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RPostgres reexports the DBI generics, so that the package can be used without attaching DBI, but the Arrow generics are missing from that list. As a result, RPostgres::dbGetQueryArrow() and its siblings fail, and DBItest's "reexport" spec is skipped in tests/testthat/helper-DBItest.R.
Severity: low. The generics remain available through DBI, and RPostgres connections already work with DBI's default Arrow methods.
This is part of the native Arrow work coordinated in #631.
Add @exportMethod entries for the Arrow generics (dbAppendTableArrow, dbBindArrow, dbCreateTableArrow, dbFetchArrow, dbFetchArrowChunk, dbGetQueryArrow, dbReadTableArrow, dbSendQueryArrow, dbWriteTableArrow) to R/export.R
Regenerate NAMESPACE
Remove the "reexport" skip from DBItest's default_skip
Reprex against the CRAN release:
packageVersion("RPostgres")
#> [1] '1.4.10'# Expected: the function, as for RPostgres::dbGetQueryRPostgres::dbGetQueryArrow#> Error:#> ! 'dbGetQueryArrow' is not an exported object from 'namespace:RPostgres'# Expected: no missing generics, i.e. character(0)arrow_generics<- grep("Arrow", getNamespaceExports("DBI"), value=TRUE)
setdiff(arrow_generics[!startsWith(arrow_generics, ".")], getNamespaceExports("RPostgres"))
#> [1] "dbGetQueryArrow" "dbReadTableArrow" "dbBindArrow" #> [4] "dbWriteTableArrow" "dbFetchArrowChunk" "dbFetchArrow" #> [7] "dbAppendTableArrow" "dbCreateTableArrow" "dbSendQueryArrow"
Activity
fix: Reexport the Arrow generics from DBI (r-dbi#634)