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
It seems to works for two re-assignments, but after that, it looks as the first assignment is taken twice and the second one is left out.
I use the current CRAN version 1.4.2 of {dbplyr}.
library(dbplyr)
library(dplyr)
#> #> Attaching package: 'dplyr'#> The following objects are masked from 'package:dbplyr':#> #> ident, sql#> The following objects are masked from 'package:stats':#> #> filter, lag#> The following objects are masked from 'package:base':#> #> intersect, setdiff, setequal, union
tbl_lazy(df=mtcars) %>%
mutate(
hp=.data$hp+1,
hp=.data$hp+2,
hp=.data$hp+4
) %>%
show_query()
#> <SQL>#> SELECT `mpg`, `cyl`, `disp`, `hp` + 4.0 AS `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`#> FROM (SELECT `mpg`, `cyl`, `disp`, `hp` + 1.0 AS `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`#> FROM (SELECT `mpg`, `cyl`, `disp`, `hp` + 1.0 AS `hp`, `drat`, `wt`, `qsec`, `vs`, `am`, `gear`, `carb`#> FROM `df`) `dbplyr_001`) `dbplyr_002`
library(dbplyr)
db<- lazy_frame(x=1)
db %>% dplyr::mutate(x=x+1L, x=x+2L, x=x+4L)
#> <SQL>#> SELECT `x` + 4 AS `x`#> FROM (SELECT `x` + 1 AS `x`#> FROM (SELECT `x` + 1 AS `x`#> FROM `df`) `q01`) `q02`
Created on 2020-09-24 by the reprex package (v0.3.0.9001)
It seems to works for two re-assignments, but after that, it looks as the first assignment is taken twice and the second one is left out.
I use the current CRAN version 1.4.2 of {dbplyr}.
Created on 2020-04-06 by the reprex package (v0.3.0)
Session info
Works for local tibbles as expected:
Also thanks for this package it's really a wonderful tool I use all the time and it saves me so much time and keeps code base maintenance efforts low.
The text was updated successfully, but these errors were encountered: