tidyverse / dbplyr

Database (DBI) backend for dplyr

Home Page:https://dbplyr.tidyverse.org

Repository from Github https://github.comtidyverse/dbplyrRepository from Github https://github.comtidyverse/dbplyr

Error in `slice()`: ! `slice()` is not supported on database backends. | Oracle Database

jkylearmstrong opened this issue · comments

I thought this is the purpose of slice, I checked and it's only it does seem to pass the lazy table in Oracle to dbplyr::slice

> library('dbplyr')
> slice(dm_cohort_tbl, 10)
Error in `slice()`:
! `slice()` is not supported on database backends.
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/rlang_error>
Error in `slice()`:
! `slice()` is not supported on database backends.
---
Backtrace:
    x
 1. +-dplyr::slice(dm_cohort_tbl, 10)
 2. \-dbplyr:::slice.tbl_lazy(dm_cohort_tbl, 10)
Run rlang::last_trace(drop = FALSE) to see 3 hidden frames.
> rlang::last_trace(drop = FALSE)
<error/rlang_error>
Error in `slice()`:
! `slice()` is not supported on database backends.
---
Backtrace:
    x
 1. +-dplyr::slice(dm_cohort_tbl, 10)
 2. \-dbplyr:::slice.tbl_lazy(dm_cohort_tbl, 10)
 3.   \-dbplyr:::stop_unsupported_function("slice")
 4.     \-cli::cli_abort(...)
 5.       \-rlang::abort(...)

> packageVersion("dbplyr")
[1] ‘2.5.0