You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lf<-dbplyr::lazy_frame(
a=TRUE, b=1, c=2, d="z",
con=dbplyr::simulate_hana()
)
lf|>dplyr::filter(.data$a==TRUE) |>dplyr::group_by(.data$b) |>dplyr::mutate(e=.data$b+.data$c) |>dbplyr::window_order(dplyr::desc(.data$e)) |>## Note: I have now fully-qualified the desc() call.dplyr::distinct(.data$d, .keep_all=TRUE)
Returns:
Errorin`get_env()`atdbplyr/R/translate-sql.R:166:3:!Can't extract an environment from a call.Run `rlang::last_trace()` to see where the error occurred.
The text was updated successfully, but these errors were encountered:
avhz
changed the title
"! Can't extract an environment from a call." when using ´dplyr::desc()´.
"! Can't extract an environment from a call." when using dplyr::desc().
Oct 23, 2024
Not sure if this is a bug or not, but I have run into the following issue.
My actual workflow is with company data but I have managed to reproduce it with a pipeline that is close enough:
This works:
Returns:
This does not work:
Returns:
The text was updated successfully, but these errors were encountered: