romainfrancois commented on pull request #10445: URL: https://github.com/apache/arrow/pull/10445#issuecomment-856654860
An interesting side benefit from this is that we don't get altrep R vectors from slices: ``` r library(arrow, warn.conflicts = FALSE) #> See arrow_info() for available features x <- 1:1e3+ 1L v <- Array$create(x) x1 <- v$as_vector() .Internal(inspect(x1)) #> @7face1b4ba18 13 INTSXP g0c0 [REF(65535)] std::shared_ptr<arrow::Array, int32, NONULL> (len=1000, ptr=0x7facdc27e998) x2 <- v$Slice(500)$as_vector() .Internal(inspect(x2)) #> @7facde2bfd80 13 INTSXP g0c0 [REF(65535)] std::shared_ptr<arrow::Array, int32, NONULL> (len=500, ptr=0x7facdb0a2198) ``` <sup>Created on 2021-06-08 by the [reprex package](https://reprex.tidyverse.org) (v2.0.0)</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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org