romainfrancois commented on pull request #11225:
URL: https://github.com/apache/arrow/pull/11225#issuecomment-928085858
individual columns of struct types may now be altrep (still in the case of a
single Array, not yet for ChunkedArray).
``` r
library(arrow, warn.conflicts = FALSE)
#> See arrow_info() for available features
st <- Array$create(data.frame(x = 1:10, y = runif(10)))
.Internal(inspect(
st$as_vector()
))
#> @7ffb06350fc8 19 VECSXP g0c2 [OBJ,REF(1),ATT] (len=2, tl=0)
#> @7ffb04e9aa10 13 INTSXP g0c0 [REF(65535)] arrow::Array<int32, 0 nulls>
len=10, Array=<0x7ffb057572d8>
#> @7ffb04e9aa80 22 EXTPTRSXP g0c0 [REF(4)]
#> @7ffb04e9a700 14 REALSXP g0c0 [REF(65535)] arrow::Array<double, 0
nulls> len=10, Array=<0x7ffb0575ba58>
#> @7ffb04e9a770 22 EXTPTRSXP g0c0 [REF(4)]
#> ATTRIB:
#> @7ffb04e9a508 02 LISTSXP g0c0 [REF(1)]
#> TAG: @7ffafd00ca60 01 SYMSXP g1c0 [MARK,REF(65535),LCK,gp=0x4000]
"row.names" (has value)
#> @7ffb07c49388 13 INTSXP g0c1 [REF(1)] (len=2, tl=0) -2147483648,-10
#> TAG: @7ffafd00cc90 01 SYMSXP g1c0 [MARK,REF(65535),LCK,gp=0x4000]
"names" (has value)
#> @7ffb06350e88 16 STRSXP g0c2 [REF(3)] (len=2, tl=0)
#> @7ffafd050318 09 CHARSXP g1c1 [MARK,REF(253),gp=0x61] [ASCII]
[cached] "x"
#> @7ffafd12e788 09 CHARSXP g1c1 [MARK,REF(36),gp=0x61] [ASCII]
[cached] "y"
#> TAG: @7ffafd00d1d0 01 SYMSXP g1c0 [MARK,REF(45977),LCK,gp=0x6000]
"class" (has value)
#> @7ffb04f58888 16 STRSXP g0c3 [REF(3)] (len=3, tl=0)
#> @7ffb00d67ec8 09 CHARSXP g1c1 [MARK,REF(105),gp=0x61] [ASCII]
[cached] "tbl_df"
#> @7ffb00d67e90 09 CHARSXP g1c1 [MARK,REF(117),gp=0x61] [ASCII]
[cached] "tbl"
#> @7ffafd087648 09 CHARSXP g1c2 [MARK,REF(504),gp=0x61,ATT] [ASCII]
[cached] "data.frame"
```
<sup>Created on 2021-09-27 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]