[
https://issues.apache.org/jira/browse/ARROW-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105751#comment-17105751
]
Neal Richardson commented on ARROW-8779:
----------------------------------------
Here's a more minimal reproducer:
{code:r}
Array$create(list(data.frame(a = 1)))
Error in Array__from_vector(x, type) :
NotImplemented: Converting vector to arrow type struct<a: double> not
implemented
{code}
It seems that we support creating ListArrays and StructArrays from R, but not a
List of Structs:
{code}
> Array$create(list(1))
ListArray
<list<item: double>>
[
[
1
]
]
> Array$create(data.frame(a = 1))
StructArray
<struct<a: double>>
-- is_valid: all not null
-- child 0 type: double
[
1
]
{code}
> [R] Unable to write Struct Layout to file (.arrow, .parquet)
> ------------------------------------------------------------
>
> Key: ARROW-8779
> URL: https://issues.apache.org/jira/browse/ARROW-8779
> Project: Apache Arrow
> Issue Type: Improvement
> Components: R
> Affects Versions: 0.16.0, 0.17.0
> Reporter: Dominic Dennenmoser
> Priority: Major
> Labels: features, patch
>
> It seems there is no method implemented to write a StructArrow (within a
> TableArrow) to file. A common case would be list columns in a dataframe. If I
> have understood the documentation correctly, the should be realisable within
> the current C++ library framework.
> I tested this with the follow df structure:
> {code:none}
> df
> |-- id <column: string>
> |-- data <column: list>
> | |-- a <column: string>
> | |-- b <column: integer>
> | |-- c <column: factor>
> | |-- d <column: double>{code}
> I got the follow error message:
> {code:none}
> Error in Table__from_dots(dots, schema) : NotImplemented: Converting vector
> to arrow type struct<a: string, b: int32, c: dictionary<values=string,
> indices=int8, ordered=0>, d: double> not implemented{code}
> I have tried it with {{arrow}} 0.17.0 under {{R}} 3.6.1 .
--
This message was sent by Atlassian Jira
(v8.3.4#803005)