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

distinct() on a grouped table duplicates columns #354

Closed
krlmlr opened this issue Sep 3, 2019 · 0 comments
Closed

distinct() on a grouped table duplicates columns #354

krlmlr opened this issue Sep 3, 2019 · 0 comments
Labels
bug an unexpected problem or unintended behavior verb trans 🤖 Translation of dplyr verbs to SQL

Comments

@krlmlr
Copy link
Member

krlmlr commented Sep 3, 2019

library(dplyr)
library(dbplyr)

lazy_frame(a = 1) %>%
  distinct() %>%
  colnames()
#> [1] "a"

lazy_frame(a = 1) %>%
  group_by(a) %>%
  distinct() %>%
  colnames()
#> [1] "a" "a"

memdb_frame(a = 1) %>%
  group_by(a) %>%
  distinct() %>%
  colnames()
#> [1] "a" "a"

Created on 2019-09-03 by the reprex package (v0.3.0)

@krlmlr krlmlr changed the title distinct() on a grouped data frame duplicates columns distinct() on a grouped table duplicates columns Sep 3, 2019
@hadley hadley added bug an unexpected problem or unintended behavior verb trans 🤖 Translation of dplyr verbs to SQL labels Dec 13, 2019
@hadley hadley closed this as completed in 74260eb Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior verb trans 🤖 Translation of dplyr verbs to SQL
Projects
None yet
Development

No branches or pull requests

2 participants