HenrikBengtsson commented on issue #40231:
URL: https://github.com/apache/arrow/issues/40231#issuecomment-1970341990
FYI, you can apply those marshalling and unmarshalling operations manually,
e.g.
```r
library(parallel)
cl <- makeCluster(1)
.y <- parallel::parLapply(cl, X = 1, fun = function(x) {
## Create arrow table on parallel worker
z <- arrow::as_arrow_table(head(iris))
## Marshal non-exportable objects
arrow::write_to_raw(z)
})
## Unmarshal marshalled objects
y <- lapply(.y, FUN = arrow::read_ipc_stream)
print(y)
#> [[1]]
#> # A tibble: 6 × 5
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> <dbl> <dbl> <dbl> <dbl> <fct>
#> 1 5.1 3.5 1.4 0.2 setosa
#> 2 4.9 3 1.4 0.2 setosa
#> 3 4.7 3.2 1.3 0.2 setosa
#> 4 4.6 3.1 1.5 0.2 setosa
#> 5 5 3.6 1.4 0.2 setosa
#> 6 5.4 3.9 1.7 0.4 setosa
```
--
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]