nbenn opened a new issue, #324:
URL: https://github.com/apache/arrow-nanoarrow/issues/324

   Sorry to resurface this once more.
   
   ```r
   library(nanoarrow)
   
   array <- as_nanoarrow_array(
     bit64::as.integer64(c(-3:3, NA))
   )
   
   str(convert_array(array, bit64::integer64()))
   #> integer64 [1:8] -3 -2 -1 0 1 2 3 NA
   str(convert_array(array, integer()))
   #>  int [1:8] -3 -2 -1 0 1 2 3 NA
   str(convert_array(array, numeric()))
   #>  num [1:8] -3 -2 -1 0 1 2 3 NA
   ```
   
   This all works great thanks to #293. For DBI compliance I (unfortunately) 
also need
   
   ```r
   convert_array(array, character())
   #> Error in convert_array.default(array, character()) :
   #>   Can't convert array <int64> to R vector of type character
   ```
   
   Any chance nanoarrow could do this for me? Or is there some "hook" for me to 
use? I'm afraid it'll have to happen on the C-side though. Having to first 
materialize as `bit64::integer64()` only to then coerce to character on the R 
side could be a workaround but it kind of defeats the purpose.


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