You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "OfekShilon (via GitHub)" <gi...@apache.org> on 2023/02/23 10:17:03 UTC

[GitHub] [arrow] OfekShilon commented on issue #33784: [R] writing/reading a data.frame with column class 'list' changes column class

OfekShilon commented on issue #33784:
URL: https://github.com/apache/arrow/issues/33784#issuecomment-1441504787

   @paleolimbot  Thanks for the suggestions.  However:
   1. The `unserialize` code seems broken:
   ```r
   ...
   df2 <- arrow::read_feather(tmpf)
   df2$list_column <- unserialize_list_col_from_binary(df2$list_column)
   # Error in FUN(X[[i]], ...) : 'connection' must be a connection
   unserialize(df2$list_column)
   # Error in unserialize(df2$list_column) : 'connection' must be a connection
   ```
   
   2. In the `list_col_to_arrow_friendly` approach, after a save/load roundtrip I'm getting an `arrow_list` of `tibble`s, which is rather far from the list of lists I set out with.
   
   3. In both approaches, as noted above - the class of columns returned by a save/load rountrip (`c("arrow_list","vctrs_list_of","vctrs_vctr","list")` causes `rbind` to break. This might be caused by the `vctrs` package - any insight into it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org