tidyverse / dbplyr

Database (DBI) backend for dplyr
https://dbplyr.tidyverse.org
Other
469 stars 169 forks source link

Regression in window_order variable argument parsing for 2.5.0 #1486

Open wkmor1 opened 3 months ago

wkmor1 commented 3 months ago

Have noticed a mild regression in version 2.5.0 of dbplyr

In 2.4.0 the following works as expected with or without explicit reference to the dplyr namespace when using desc

library(dplyr)
library(dbplyr)

db <- memdb_frame(y = runif(10), z = 1:10)

mutate(window_order(db, dplyr::desc(y)), z = cumsum(y))

But in 2.5.0 only bare desc works. Using dplyr::desc gives the following error

Error in `get_env()`:
! Can't extract an environment from a call.