Skip to content
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

No connection to duckdb file via as_duckplyr_tibble #253

Open
sparrow925 opened this issue Aug 21, 2024 · 2 comments
Open

No connection to duckdb file via as_duckplyr_tibble #253

sparrow925 opened this issue Aug 21, 2024 · 2 comments

Comments

@sparrow925
Copy link

sparrow925 commented Aug 21, 2024

Super excited to see #266, so I tried it out with v0.4.1.9003 -- encountered the following error:

library(tidyverse)

con = DBI::dbConnect(duckdb::duckdb(), "foo.db") #db on disk
DBI::dbWriteTable(con, name = "iris", value = iris)
dplyr::tbl(con, "iris") %>% duckplyr::as_duckplyr_tibble()

Error in duckdb$rel_from_sql(con, sql) : attempt to apply non-function

@bschneidr
Copy link

I'm really hoping we could use 'duckplyr' to connect to DuckDB files, so that it's possible to bypass the somewhat slow 'dbplyr' translation process. If I understand the ticket correctly, that's what you're trying to do here.

@krlmlr
Copy link
Member

krlmlr commented Aug 22, 2024

Thanks for the heads-up. Working on it, shouldn't be too long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants