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.
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
ARROW-12964: [R] Add bindings for ifelse() and if_else() #10724
ARROW-12964: [R] Add bindings for ifelse() and if_else() #10724
Changes from 9 commits
fe6ac2e
6b3a7aa
613a1de
1190697
cd7a2d9
1ede692
b6167fb
93f51a3
6f67ecb
afe21ea
8024723
8ed814b
e876926
f450b33
b6e8b3b
0b14faa
7384206
2c1b535
a6b5081
6c28763
0aaec22
52e6bc2
3045697
7bac428
4470e72
075cb7f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This skip is not great, I could probably write up a hacky helper that basically checks to see if the condition
is.na
and if it's not then only if the type is double dois.nan()
. And maybe I should do that already so that we don't silently differ from expectations here...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.
https://issues.apache.org/jira/browse/ARROW-12055 is the "make
NaN
actually work" ticketThere 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.
But
dbl
doesn't haveNaN
does it?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.
ARROW-12055 is now resolved by this PR
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.
Can this skip now be removed?
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.
Unfortunatelyas it turns out, no. I've created https://issues.apache.org/jira/browse/ARROW-13364 to track this, but Arrow's comparison withNaN
s results infalse
and not anNA
(-like) value:That 9th row
NaN > 5
is evaluated toNA
in R and therefore gets a missing value, where as in ArrowNaN > 5
evaluates tofalse
so we get the"zzz"
from thechr
columnThere 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.
Gosh, missing data is hard 🤔