paleolimbot commented on issue #343:
URL: 
https://github.com/apache/arrow-nanoarrow/issues/343#issuecomment-1867731837

   DBI aside, I do think that it's pretty reasonable to expect 
`tibble::tibble(x = list(raw())` to convert to `struct<binary>` in nanoarrow. I 
forget the exact details of what exactly I need to change to make that work in 
nanoarrow but I don't think it's overly complicated.
   
   ``` r
   tibble::tibble(x = list(raw())) |> nanoarrow::as_nanoarrow_array()
   #> Error in infer_nanoarrow_schema.default(X[[i]], ...): Can't infer Arrow 
type for object of class list
   ```
   
   For comparison, Arrow handles this fine:
   
   ``` r
   tibble::tibble(x = list(raw())) |> arrow::as_arrow_array()
   #> StructArray
   #> <struct<x: binary>>
   #> -- is_valid: all not null
   #> -- child 0 type: binary
   #>   [
   #>     
   #>   ]
   ```
   
   <sup>Created on 2023-12-22 with [reprex 
v2.0.2](https://reprex.tidyverse.org)</sup>


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