Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
9.0.0
Description
Since the current unit is fixed to "s", an error will occur if a time containing sub-seconds is given.
"1970-01-01T00:00:59.123456789" |> arrow::arrow_table(x = _) |> dplyr::mutate(x = lubridate::as_datetime(x, tz = "UTC")) |> dplyr::collect() #> Error in `dplyr::collect()`: #> ! Invalid: Failed to parse string: '1970-01-01T00:00:59.123456789' as a scalar of type timestamp[s]
I thought that nanoseconds should be used, but it should be noted that POSIXct is currently supposed to be converted to microseconds, as shown in ARROW-17424.
Attachments
Issue Links
- relates to
-
ARROW-15599 [R] Convert a column as a sub-second timestamp from CSV file with the `T` col type option
- Resolved
-
ARROW-17424 [R] Microsecond is not sufficient unit for POSIXct
- Open
- links to