rdavis120 opened a new issue, #35604:
URL: https://github.com/apache/arrow/issues/35604

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   When reading a parquet file and trying to set the schema to use a struct, I 
only get NA values back.
   
   ```r
   # write parquet 
   arrow::write_dataset(iris, path = 'iris.parquet')
   
   arrow::open_dataset("iris.parquet") |> dplyr::collect()
       Sepal.Length Sepal.Width Petal.Length Petal.Width    Species
   1            5.1         3.5          1.4         0.2     setosa
   2            4.9         3.0          1.4         0.2     setosa
   
   
   arrow::open_dataset("iris.parquet", schema = schema(Species=string(),  
                                                       Sepal = 
struct(Sepal.Length = float64(), Sepal.Width = float64()),  
                                                       Petal = 
struct(Petal.Length = float64(), Petal.Width = float64()))) |>
     dplyr::collect()
      Species Sepal$Sepal.Length $Sepal.Width Petal$Petal.Length $Petal.Width
      <chr>                <dbl>        <dbl>              <dbl>        <dbl>
    1 setosa                  NA           NA                 NA           NA
    2 setosa                  NA           NA                 NA           NA
    3 setosa                  NA           NA                 NA           NA
   
   > packageVersion('arrow')
   [1] ‘12.0.0’
   ```
   
   ### 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]

Reply via email to