-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Milestone
Description
DuckDB's ability to execute SELECT statements directly on files (CSV, Parquet etc) worked fine with dbplyr, up until 2.3.4. However with the upgrade to 2.4.0, it fails. With the below example I'm querying a specific file called metadata.0.2.3.parquet, but you can replace it with any parquet file and the same issue will occur:
duckdb::duckdb() |>
DBI::dbConnect(drv = _, read_only = TRUE) |>
dplyr::tbl("metadata.0.2.3.parquet")It looks like you tried to incorrectly use a table in a schema as source.
ℹ If you want to specify a schema use `in_schema()` or `in_catalog()`.
ℹ If your table actually contains "." in the name use `check_from = FALSE` to silence this message.
Error in `collect()`:
! Failed to collect lazy table.
Caused by error:
! rapi_prepare: Failed to prepare query SELECT "metadata.0.2.3.parquet".*
FROM "metadata.0.2.3.parquet"
LIMIT 11
Error: Binder Error: Referenced table "metadata.0.2.3.parquet" not found!
Candidate tables: "metadata"
Run `rlang::last_trace()` to see where the error occurred.
According to tidyverse/dbplyr#1390, this bug is something that needs to be fixed in the duckdb package.
Metadata
Metadata
Assignees
Labels
No labels