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

Bug: select() relocates grouping variables to the front #568

Closed
mgirlich opened this issue Dec 17, 2020 · 0 comments
Closed

Bug: select() relocates grouping variables to the front #568

mgirlich opened this issue Dec 17, 2020 · 0 comments

Comments

@mgirlich
Copy link
Collaborator

library(dbplyr)
library(dplyr, warn.conflicts = FALSE)

tbl_lazy(tibble(a = 1, b = 1)) %>% 
  group_by(b) %>% 
  select(a, b)
#> <SQL>
#> SELECT `b`, `a`
#> FROM `df`

# compare to dplyr
tibble(a = 1, b = 1) %>% 
  group_by(b) %>% 
  select(a, b)
#> # A tibble: 1 x 2
#> # Groups:   b [1]
#>       a     b
#>   <dbl> <dbl>
#> 1     1     1

Created on 2020-12-17 by the reprex package (v0.3.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