paleolimbot opened a new pull request, #14519:
URL: https://github.com/apache/arrow/pull/14519

   This PR supports the following:
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> Some features are not enabled in this build of Arrow. Run `arrow_info()` 
for more information.
   
   schema_with_ext_type <- schema(
     x = int32(),
     y = vctrs_extension_type(integer())
   )
   
   as_arrow_table(schema_with_ext_type)
   #> Table
   #> 0 rows x 2 columns
   #> $x <int32>
   #> $y <integer(0)>
   ```
   
   <sup>Created on 2022-10-26 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>
   
   It's a little bit cheating, though, because the previous approach is more 
true to what `ChunkedArray::MakeEmpty()` does. Is there a downside here to 
creating a `ChunkedArray` with zero chunks (as opposed to a `ChunkedArray()` 
with one empty chunk)? If there is we can probably work around it via creating 
an empty array of the storage type and wrapping it.


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