GH-14981: [R] Forward compatibility with dplyr::join_by() #33664
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #14981
Rationale for this change
dplyr 1.1.0 introduces a new function
join_by()
for specifying join conditions. This PR adds support forjoin_by()
in dplyr joins on Arrow objects. The support is limited only to equality conditions. Code added in this PR throws an error if the user specifies inequality conditions or uses helper functions injoin_by()
.https://www.tidyverse.org/blog/2022/11/dplyr-1-1-0-is-coming-soon/#join-improvements
What changes are included in this PR?
join_by()
in dplyr joins on Arrow objects with equality conditionsjoin_by()
, which are skipped when the version of dplyr is less than1.0.99.9000
which is the current version number of the development version of dplyr on GitHub which that become version1.1.0
on CRAN.Are these changes tested?
Yes
Are there any user-facing changes?
Yes, the new dplyr syntax for specifying join conditions is supported, but use of this new syntax is optional. The old dplyr join syntax will continue to work. There are no breaking changes in this PR.