Skip to content

Conversation

@romainfrancois
Copy link
Contributor

library(arrow, warn.conflicts = FALSE)

df <- structure(list(col = structure(list(structure(list(list(structure(1))), class = "inner")), class = "outer")), class = "data.frame", row.names = c(NA, -1L))
Array$create(df)
#> StructArray
#> <struct<col: list<item: list<item: list<item: double>>>>>
#> -- is_valid: all not null
#> -- child 0 type: list<item: list<item: list<item: double>>>
#>   [
#>     [
#>       [
#>         [
#>           1
#>         ]
#>       ]
#>     ]
#>   ]

Created on 2021-04-07 by the reprex package (v0.3.0)

@github-actions
Copy link

github-actions bot commented Apr 7, 2021

@romainfrancois
Copy link
Contributor Author

following up @jonkeane finding from #8650

@jonkeane
Copy link
Member

jonkeane commented Apr 7, 2021

This looks good to me. I've tested it out on the simple features objects we were benchmarking with where I discovered this first, and those work fine now from parquet -> arrow -> R and then critically R -> arrow (and then -> feather/parquet) without needing to have the {sf} package loaded.

It also looks like we were able to get rid of a TODO on the way, nice!

That RTools 35 failure is unrelated to this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants