You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2021/11/05 12:10:00 UTC

[jira] [Created] (ARROW-14609) [R] left_join by argument error message mismatch

Nicola Crane created ARROW-14609:
------------------------------------

             Summary: [R] left_join by argument error message mismatch
                 Key: ARROW-14609
                 URL: https://issues.apache.org/jira/browse/ARROW-14609
             Project: Apache Arrow
          Issue Type: Improvement
          Components: R
            Reporter: Nicola Crane


We should use the dplyr error message which is clear when the "by" argument to joins is not correctly specified.

{code:r}
> left_join(iris, iris, by  = "made_up_colname")
Error: Join columns must be present in data.
x Problem with `made_up_colname`.
Run `rlang::last_error()` to see where the error occurred.

> left_join(arrow_table(iris), arrow_table(iris), by = "made_up_colname")
Error in handle_join_by(by, x, y) : 
  all(names(by) %in% names(x)) is not TRUE
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)