apache / apache/arrow

[R] feather round-trip support for named vectors in list columns

Open
#15,033 5 comments 2 reactions 0 assignees View on GitHub
Component: R Priority: Medium Status: needs champion Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the bug, including details regarding any error messages, version, and platform.

Are write_feather and read_feather supposed to support named vectors in list columns? Here they drop the names:

```r
library(arrow)
x <- tibble::tibble(list_column = list(c(a = 1, b = 2)))
write_feather(x, "x.feather")
read_feather("x.feather")$list_column
#> [1]>
#> [[1]]
#> [1] 1 2
x$list_column
#> [[1]]
#> a b
#> 1 2
```

### Component(s)

R

Contributor guide

Open the contributing guide

Research direction

Start by running the R reproduction using write_feather and read_feather, then inspect the R implementation behind those entry points. Done means a named vector in a list column retains its names after the Feather round trip, with coverage for the shown example.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.