You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Neal Richardson (Jira)" <ji...@apache.org> on 2021/10/13 09:46:00 UTC
[jira] [Updated] (ARROW-14307) [R] crashes when reading empty
feather with POSIXct column
[ https://issues.apache.org/jira/browse/ARROW-14307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Neal Richardson updated ARROW-14307:
------------------------------------
Summary: [R] crashes when reading empty feather with POSIXct column (was: R crashes when reading empty feather with POSIXct column)
> [R] crashes when reading empty feather with POSIXct column
> ----------------------------------------------------------
>
> Key: ARROW-14307
> URL: https://issues.apache.org/jira/browse/ARROW-14307
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Affects Versions: 5.0.0
> Reporter: Damiano
> Priority: Major
> Attachments: image-2021-10-13-10-35-33-643.png
>
>
> R crashes when writing and then reading an empty feather with at least one POSIXct column.
> {code:r}
> # Create empty df with one POSIXct column
> dates <- as.POSIXct(character())
> values <- numeric()
> df_empty <- data.frame(dates, values)
> df_empty
> # [1] dates values
> # <0 rows> (or 0-length row.names)
> sapply(df_empty, class)
> # $dates
> # [1] "POSIXct" "POSIXt"
> #
> # $values
> # [1] "numeric"
> # Write and read -> R crashes
> tempfile <- tempfile()
> arrow::write_feather(df_empty, tempfile)
> df_restored <- arrow::read_feather(tempfile)
> # >> R crashes here. Tested on 3.6.3 & 4.1.1 for windows and Linux.
> unlink(tempfile)
> {code}
> At times, in RStudio, this message is displayed when R crashes.
> !image-2021-10-13-10-35-33-643.png!
>
> Tested on Windows (R version 3.6.3 and 4.1.1) and Linux (R 3.6.3).
> {code:r}
> # TESTED ON WINDOWS
> Arrow ‘5.0.0.2’
> R version 3.6.3 (2020-02-29)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows 10 x64 (build 19043)
> R version 4.1.1 (2021-08-10)
> Platform: i386-w64-mingw32/i386 (32-bit)
> Running under: Windows 10 x64 (build 19043)
> # TESTED ON LINUX
> Arrow ‘5.0.0.2’
> R version 3.6.3 (2020-02-29)
> Platform: x86_64-pc-linux-gnu (64-bit)
> # Running under: Debian GNU/Linux 10 (buster)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)