-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14442: [R] fix behaviour when converting timestamps with "" as tzone #12240
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
Closed
Closed
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
eaf2fe9
added failing tests for timestamps
dragosmg d7fee58
a more robust test
dragosmg 9f6e2ba
added with and without tz examples
dragosmg eba6e74
add the timezone if missing
dragosmg ec5e3a3
simplify unit test
dragosmg 2dd042a
import rlang::inform
dragosmg 4cf3f4a
add rlang::import to namespace
dragosmg 3d9534e
account for POSIXct vectors without the `"tzone"` attribute
dragosmg f38a293
use `missing()` instead of `is.null()` to check for a missing attribute
dragosmg 0238aa5
add a test for message and do not use `missing()` to check for missin…
dragosmg 1a5fe71
use `any()` instead of `|` when looking for a missing `"tzone"` attri…
dragosmg 2a2065a
remove tests for array from POSIXct without timezone
dragosmg 69df927
no longer inform
dragosmg 135af60
remove message expectation
dragosmg ea4ef87
remove inaccurate comment
dragosmg d9aa10a
additional unit tests for POSIXct -> array
dragosmg 0bd4eab
switch test to `"Pacific/Marquesas"` as improbable timezone
dragosmg e1b1199
remove handling of missing or empty tzone from Array
dragosmg 5466d39
changed rare timezone in tests to `"Pacific/Marquesas"`
dragosmg 2742681
added systzone symbol
dragosmg a1540dc
update the definition of `InferArrowTypeFromVector`
dragosmg 05ebbb9
update the type infer from `REALSXP` too
dragosmg 463bce3
found what looks to be the right incantation for calling R functionality
dragosmg 388ff7e
stop going through `symbols::` for `Sys.timezone()`
dragosmg 79460d1
call `Sys.timezone()` directly
dragosmg 6b27059
testing `TZ = NA` and `TZ = NULL` both result in a `NULL` `"tzone"` a…
dragosmg 6a633b9
skip 1 test on windows
dragosmg 09f3382
skip test 2 on windows
dragosmg 5d455a9
skip test 3 on windows
dragosmg 1816861
skip test 4 & 5 on windows
dragosmg bf5b374
skip tests 6, 7, 8, 9 & 10 on windows
dragosmg f9552f4
skip tests 11, 12, 13, and 14 on windows
dragosmg b0ffa4f
checking to see if `ignore_attr` helps when comparing objects
dragosmg 68ccb24
ignore attributes only on windows
dragosmg 8bac047
one more ignore attributes on windows
dragosmg e3f6a5b
defined and used `on_windows()` to selectively ignore attributes in e…
dragosmg 28d193f
ignoring attributes for some more of the failing tests
dragosmg 528647a
some more attributes ignored
dragosmg 5638c6b
ignoring more attribute checks on windows
dragosmg 166c708
un-skip tests on win
dragosmg 6ca5a4e
ignore attributes on windows for yday extractions
dragosmg 41b580f
added a bunch of TODOs related to ARROW-13168
dragosmg daac293
trying something
dragosmg 0415048
skip 1 test + datetime column OS aware
dragosmg d543415
try Jon's suggestion
dragosmg 3343026
some cleanup
dragosmg fa510ed
more cleanup
dragosmg d9d1d15
one more
dragosmg f472103
another one
dragosmg c071d07
Merge branch 'master' into timestampts_missing_timezone
dragosmg 876c483
removed the `on_windows()` skip helper
dragosmg 5903fb2
use `withr::with_timezone()`
dragosmg de58c8d
erroring with `with_timezone("" ...)` instead of `with_envvar(c(TZ = …
dragosmg e31bf0a
add test with a different timezone
dragosmg e5039a8
removed `rlang::inform()` import
dragosmg fb19ce8
switched back to `withr::with_envvar(c(TZ = ""))` instead of `withr::…
dragosmg 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.