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() does not work if a column of the tbl is a list column #3088

Closed
dkincaid opened this issue Sep 6, 2017 · 1 comment
Closed

distinct() does not work if a column of the tbl is a list column #3088

dkincaid opened this issue Sep 6, 2017 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@dkincaid
Copy link

dkincaid commented Sep 6, 2017

If a data frame contains a list column then distinct is not working. It simply returns all rows.

library(tibble)
library(dplyr)
testTbl <- tibble(a=c("1", "1", "2", "2", "3","3"), b=c(list("A"), list("A"), list("B"), list("B"), list("C"), list("C")))
testTblDistinct <- testTbl %>% distinct()
@krlmlr
Copy link
Member

krlmlr commented Sep 15, 2017

Thanks, confirmed. This is related to #2355, but we should emit an error or at least a warning here for the time being.

@krlmlr krlmlr added bug an unexpected problem or unintended behavior data frame labels Sep 15, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants