Skip to content
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-11136: [R] Bindings for is.nan #9167

Closed
wants to merge 4 commits into from

Conversation

jonkeane
Copy link
Member

No description provided.

r/tests/testthat/test-dataset.R Outdated Show resolved Hide resolved
expect_equivalent(
ds %>%
select(part, dbl) %>%
filter(!is.nan(dbl), part == 1) %>%
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is a great test because the NaN you added looks like it is in part == 2

@@ -111,7 +111,8 @@ cast_array_expression <- function(x, to_type, safe = TRUE, ...) {

.unary_function_map <- list(
"!" = "invert",
"is.na" = "is_null"
"is.na" = "is_null",
"is.nan" = "is_nan"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's beautiful that this is the only change needed to support this in the dplyr code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, absolutely! There's more testing in this PR than operational code :)

Co-authored-by: Neal Richardson <neal.p.richardson@gmail.com>
@github-actions
Copy link

@jonkeane jonkeane deleted the ARROW-11136-is.nan branch May 5, 2021 12:53
GeorgeAp pushed a commit to sirensolutions/arrow that referenced this pull request Jun 7, 2021
Closes apache#9167 from jonkeane/ARROW-11136-is.nan

Authored-by: Jonathan Keane <jkeane@gmail.com>
Signed-off-by: Neal Richardson <neal.p.richardson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants