paleolimbot commented on issue #1005:
URL: https://github.com/apache/arrow-adbc/issues/1005#issuecomment-1703611059

   Ok:
   
   - `bit64::integer64()` support: 
https://github.com/apache/arrow-nanoarrow/pull/293
   - Warning for int64 -> double conversion that may not roundtrip: 
https://github.com/apache/arrow-nanoarrow/pull/294
   
   Perhaps you could implement something like:
   
   ```r
   adbi_convert_array_stream <- function(stream, options = list(bigint = NA, 
use_altrep = NA, engine = c("arrow", "nanoarrow")) {
     schema <- stream$get_schema()
     to <- infer_nanoarrow_ptype(schema)
     # Apply options in some way, possibly modifying to
     nanoarrow::convert_array_stream(stream, to)
     # ..or
     reader <- arrow::as_record_batch_reader(stream)
     out <- as.data.frame(out)
     vctrs::vec_cast(out, to)
   }
   ```
   
   (with apologies if you already did that and I'm late to the game!)


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