thisisnic commented on issue #15033:
URL: https://github.com/apache/arrow/issues/15033#issuecomment-1415836310

   I was also thinking that this is tricky as one could make an argument for 
differing expected behaviour for named vectors versus named lists (maybe?), but 
names are dropped in both.
   
   ``` r
   library(arrow)
   
   # With vectors
   x <- tibble::tibble(list_column = list(c(a = 1, b = 2)))
   write_feather(x, "x.feather")
   read_feather("x.feather")$list_column
   #> <list<double>[1]>
   #> [[1]]
   #> [1] 1 2
   
   # Now with lists
   x <- tibble::tibble(list_column = list(list(a = 1, b = 2)))
   write_feather(x, "x.feather")
   read_feather("x.feather")$list_column
   #> <list<list<double>>[1]>
   #> [[1]]
   #> <list<double>[2]>
   #> [[1]]
   #> [1] 1
   #> 
   #> [[2]]
   #> [1] 2
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to