Is it possible to write parquet files with nested columns?

Viewed 589

I tried to write a nested parquet file using the below

library(dplyr)
library(tidyr)
mtcars %>% 
  nest(-cyl) %>% 
  arrow::write_parquet("c:/scratch/nest.parquet")

and I got error

Error in Table__from_dots(dots, schema) : 
  NotImplemented: Converting vector to arrow type struct<mpg: double, disp: double, hp: double, drat: double, wt: double, qsec: double, vs: double, am: double, gear: double, carb: double> not implemented
In addition: Warning message:
All elements of `...` must be named.
Did you want `data = c(mpg, disp, hp, drat, wt, qsec, vs, am, gear, carb)`? 

It seems that it's not possible to write nested-column parquet files from R.

0 Answers
Related