You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/12/06 09:37:07 UTC

[GitHub] [arrow] romainfrancois commented on pull request #11751: ARROW-14694: [R] Let me dput a schema

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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org