Skip to content

distinct(.keep_all = TRUE) does not work with filtering joins #1534

@Xitian9

Description

@Xitian9

An error is produced when trying to use distinct(..., .keep_all = TRUE) within the second argument of a filtering join. The error does not occur when used within the first argument of a filtering join, within either argument of a mutating join, or when using .keep_all = FALSE.

df1 <- dbplyr::lazy_frame(id = 1)
df2 <- dbplyr::lazy_frame(id = 1)

anti_join(df1, df2 |> distinct(id, .keep_all = TRUE))
Error in `get_env()`:
! Can't extract an environment from a call.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions