Skip to content

Arrow generics from DBI are not reexported #633

Description

@krlmlr

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::dbGetQuery
RPostgres::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"

Created on 2026-11-29 with reprex v2.1.1

Activity

  1. added a commit that references this issue on Nov 29, 2026
    62b16d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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