[ 
https://issues.apache.org/jira/browse/ARROW-8779?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17105742#comment-17105742
 ] 

Dominic Dennenmoser commented on ARROW-8779:
--------------------------------------------

This minimal repex should result in the mentioned error message:
{code:r}
nrows <- 1:3
df <- 
  tibble::tibble(
    id = 1L,
    data = 
      list(
        tibble::tibble(
          a = letters[nrows],
          b = as.integer(nrows),
          c = as.factor(a),
          d = b/2
        )
      )
  )
arrow::write_parquet(df, "test.parquet")
{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)

Reply via email to