Skip to content

Commit

Permalink
Don't set check_from for dbplyr 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Mar 14, 2024
1 parent 446e3b1 commit 9caecc5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion R/dplyr.R
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ src_bigquery <- function(project, dataset, billing = project, max_pages = 10) {
# registered onLoad
tbl.BigQueryConnection <- function(src, from, ...) {
src <- dbplyr::src_dbi(src, auto_disconnect = FALSE)
tbl <- dplyr::tbl(src, from = from, check_from = FALSE)

if (dbplyr_2.5.0) {
tbl <- dplyr::tbl(src, from = from)
} else {
tbl <- dplyr::tbl(src, from = from, check_from = FALSE)
}

# This is ugly, but I don't see a better way of doing this
tb <- as_bq_table(src$con, from)
Expand Down

0 comments on commit 9caecc5

Please sign in to comment.