Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion r/tests/testthat/test-duckdb.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,17 @@ test_that("to_duckdb then to_arrow", {
)

# Now check errors
# dbplyr 2.6.0 added "con" to the allowed $ fields on tbl_lazy;
# older versions only allow "src" and "lazy_query"
skip_if(packageVersion("dbplyr") < "2.6.0")

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs skipping or fails on CI with cached dbplyr with old syntax


Comment thread
thisisnic marked this conversation as resolved.
ds_rt <- ds |>
to_duckdb() |>
# factors don't roundtrip https://github.com/duckdb/duckdb/issues/1879
select(-fct)

# alter the class of ds_rt's connection to simulate some other database
class(ds_rt$src$con) <- "some_other_connection"
class(ds_rt$con) <- "some_other_connection"

expect_error(
to_arrow(ds_rt),
Expand Down
Loading