romainfrancois commented on pull request #11751:
URL: https://github.com/apache/arrow/pull/11751#issuecomment-986600293


   Thanks for the reviews. I ended up with this: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   s <- struct(a = list_of(
     struct(b = arrow:::DayTimeInterval__initialize())
   ))
   
   s$code()
   #> struct(a = list_of(struct(b = stop("Unsupported type: 
<day_time_interval>."))))
   ```
   
   <sup>Created on 2021-12-06 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1.9000)</sup>
   
   so that the code is generated, but will cause an error if executed, not 
during generation. This way it's easier for the user to adapt to, as they have 
the rest of the type/schema structure. 
   
   cc @jonkeane @thisisnic @nealrichardson 
   
   


-- 
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