Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jkylearmstrong opened this issue Feb 26, 2025 · 0 comments

Comments

@jkylearmstrong
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant