Skip to content

Cryptic error message in join when y is NULL #6798

Description

@DanChaltiel

Hi,

This error message is not very informative:

dplyr::left_join(iris, NULL, by=Species)
#> Error in `auto_copy()`:
#> ! `x` and `y` must share the same src.
#> i set `copy` = TRUE (may be slow).
#> Backtrace:
#>     x
#>  1. +-dplyr::left_join(iris, NULL, by = Species)
#>  2. \-dplyr:::left_join.data.frame(iris, NULL, by = Species)
#>  3.   \-dplyr::auto_copy(x, y, copy = copy)
#>  4.     \-rlang::abort(bullets)

Created on 2023-03-21 with reprex v2.0.2

Wouldn't it be better to simply tell us the second dataframe was unexpectedly NULL?

Experienced with dplyr v1.1.0, sorry I cannot test with the dev version right now.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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