-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-39191: [R] throw error when string_replace
is passed vector of values in pattern
#39219
Merged
thisisnic
merged 7 commits into
apache:main
from
abfleishman:39191-arrow-r-str-replace-all
Dec 19, 2023
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
0db8c63
add error and tests (failing)
abfleishman 7e8df1d
remove test that doesn't actualy test for something I am fixing; use …
abfleishman 223602f
remove comment; add test for replacement length 2
abfleishman 5efb699
remove check of replacement
abfleishman fd05f07
add error and tests for if replacement is >1 length; use `styler::sty…
abfleishman b094f69
styler::style_file
abfleishman db2ee6a
use Expression$field_ref("x") in tests
abfleishman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny last change to suggest, and then this will be ready to merge! You don't need the
arrow_table()
etc stuff here ascall_binding()
can be called on its own. What is needed instead is to create a field reference socall_binding()
has something to refer to in the expression it creates, and thenexpect_error()
can just wrapcall_binding()
.For example, in that final test, you'll need something a bit shorter, like this:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I'll be honest. I really am lost in this whole
call_bindings
/Expression$field_ref("x")
stuff. I guess thats what I get for being a field biologist dabbling in computer science. Thanks for walking me through this stuff!There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've dived into a really tricky bit of the codebase, but you've done a great job! A lot of my own early PRs to arrow involved drawing analogies between different bits of the codebase, but not understanding exactly what was going on (and this is still the case for any of my PRs which involve any C++).
Congratulations on your first PR to Arrow! Once the CI passes I'll merge it. Welcome to the project :)