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)