Skip to content

Commit

Permalink
Forward compatibility with dbplyr 2.5.0
Browse files Browse the repository at this point in the history
I don't _think_ there should be any other problems, but if you could run your tests with dev dbplyr installed, I'd certainly appreciate it.
  • Loading branch information
hadley authored and jarodmeng committed Feb 24, 2024
1 parent c23d816 commit cf31de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/cte.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ get_tables_from_sql.lazy_select_query <- function(query) {

#' @export
get_tables_from_sql.lazy_base_remote_query <- function(query) {
if (inherits(query$x, "dbplyr_table_ident")) {
if (inherits(query$x, "dbplyr_table_path")) { # dbplyr >= 2.5.0
utils::getFromNamespace("table_path_name", "dbplyr")(query$x)
} else if (inherits(query$x, "dbplyr_table_ident")) { # dbplyr >= 2.4.0
vctrs::field(query$x, "table")
} else {
as.character(query$x)
Expand Down

0 comments on commit cf31de7

Please sign in to comment.