-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
Hello! Firstly, thanks for working on this package. I am very excited about it!
I'm getting a warning from testthat when my query involves dplyr and head() to limit the size of my query. Is there a workaround? Given the need to call collect() in the test, this could result in a large SELECT-* file.
Test code:
setup({
dittodb::start_mock_db()
})
teardown({
dittodb::stop_mock_db()
})
con <- DBI::dbConnect(odbc::odbc(), "athena")
test_that("A table is returned correctly", {
apps <-
dplyr::tbl(con, dbplyr::in_schema(schema, table)) %>%
head(10) %>%
dplyr::collect()
expect_equal(dim(apps), c(10, 10))
expect_equal(names(apps), tolower(names(apps)))
})Warning:
av_get_table.R:40: warning: A table is returned correctly
dbFetch `n` is ignored while mocking databases.Thanks again!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels