nbenn commented on issue #343:
URL:
https://github.com/apache/arrow-nanoarrow/issues/343#issuecomment-1867737895
@paleolimbot the following does the trick for me:
```r
infer_nanoarrow_schema.AsIs <- function(x, ...) {
# unfortunately NextMethod() goes directly to `default`
class(x) <- class(x)[-1]
infer_nanoarrow_schema(x)
}
infer_nanoarrow_schema.list <- function(x, ...) {
is_raw <- vapply(x, is.raw, logical(1))
if (!all(is_raw)) {
stop("Only lists of raw vectors are currently supported", call. = FALSE)
}
if (length(x) > 0 && sum(lengths(x)) > .Machine$integer.max) {
nanoarrow::na_large_binary()
} else {
nanoarrow::na_binary()
}
}
```
where the list implementation would be simple in nanoarrow, as it's a copy
of the blob implementation.
--
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]