You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Dewey Dunnington (Jira)" <ji...@apache.org> on 2022/12/12 14:06:00 UTC

[jira] [Commented] (ARROW-18263) [R] Error when trying to write POSIXlt data to CSV

    [ https://issues.apache.org/jira/browse/ARROW-18263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17646117#comment-17646117 ] 

Dewey Dunnington commented on ARROW-18263:
------------------------------------------

Linking ARROW-18337 since it's related to the implementation of extension type -> string cast. (I believe a "cast to utf8()" is how the csv reader does its serializing).

> [R] Error when trying to write POSIXlt data to CSV
> --------------------------------------------------
>
>                 Key: ARROW-18263
>                 URL: https://issues.apache.org/jira/browse/ARROW-18263
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>            Reporter: Nicola Crane
>            Priority: Major
>
> I get an error trying to write a tibble of POSIXlt data to a file.  The error is a bit misleading as it refers to the column being of length 0.
> {code:r}
> posixlt_data <- tibble::tibble(x = as.POSIXlt(Sys.time()))
> write_csv_arrow(posixlt_data, "posixlt_data.csv")
> {code}
> {code:r}
> Error: Invalid: Unsupported Type:POSIXlt of length 0
> {code}
> See also:
> {code:r}
> arrow_table(posixlt_data)
> {code}
> {code:r}
> Table
> 2 rows x 2 columns
> $x <POSIXlt of length 0>
> $y <int32>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)