-
Notifications
You must be signed in to change notification settings - Fork 3.7k
GH-44208: [R] Adding test to ensure bit64's new semantic works with arrow #46651
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format?
or
See also: |
|
|
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.
Thanks for this! These suggestions should resolve the linting issues in CI.
Do you know if any of the semantics changes mean we should add other tests? Or does this cover the new behavior(s) in bit64?
@@ -352,6 +352,20 @@ test_that("array supports integer64", { | |||
expect_true(as.vector(is.na(all_na))) | |||
}) | |||
|
|||
test_that("array supports integer64 with new sematics", { | |||
options(integer64_semantics="new") | |||
x <- bit64::as.integer64(1:10) + MAX_INT |
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.
x <- bit64::as.integer64(1:10) + MAX_INT | |
x <- bit64::as.integer64(1:10) + MAX_INT |
@@ -352,6 +352,20 @@ test_that("array supports integer64", { | |||
expect_true(as.vector(is.na(all_na))) | |||
}) | |||
|
|||
test_that("array supports integer64 with new sematics", { | |||
options(integer64_semantics="new") |
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.
Would you mind wrapping this in withr::with_options(list(integer64_semantics = "new"), {...}
see
arrow/r/tests/testthat/test-Array.R
Line 842 in c2fb0e3
withr::with_options(list(arrow.skip_nul = TRUE), { |
Rationale for this change
Based on the #44208 issue, we want to make sure that we have test for new semantic of bit64
What changes are included in this PR?
New test
Are these changes tested?
NA
Are there any user-facing changes?
No