lgautier opened a new issue, #39603:
URL: https://github.com/apache/arrow/issues/39603
### Describe the bug, including details regarding any error messages,
version, and platform.
`ChunkedArray` objects of type "DictionnaryType" have the method `as_vector`
(as do `ChunkedArray` objects of other types) but calling that method ends with
an error.
I am using the R package `polars` to create a problematic `ChunkedArray`.
This is how I discovered the issue and I did not find how to create a similar
ChunkedArray using the R package `arrow` alone:
```r
> require("arrow"); require("polars")
> pl_df <- polars::as_polars_df(data.frame(foo = factor(c("x", "y", "x"))))
> ar_df <- arrow::as_arrow_table(pl_df)
> ar_df$foo
ChunkedArray
<dictionary<values=large_string, indices=uint32>>
[
-- dictionary:
[
"x",
"y"
]
-- indices:
[
0,
1,
0
]
]
> ar_df$foo$as_vector()
Error: Cannot convert Dictionary Array of type
`dictionary<values=large_string, indices=uint32, ordered=0>` to R
```
`arrow` version: 12.0.0.9000
R version: 4.2.3
### Component(s)
R
--
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]