romainfrancois commented on pull request #11225:
URL: https://github.com/apache/arrow/pull/11225#issuecomment-926616517


   However, struct types don't benefit: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   st <- Array$create(data.frame(x = 1:10, y = runif(10)))
   st
   #> StructArray
   #> <struct<x: int32, y: double>>
   #> -- is_valid: all not null
   #> -- child 0 type: int32
   #>   [
   #>     1,
   #>     2,
   #>     3,
   #>     4,
   #>     5,
   #>     6,
   #>     7,
   #>     8,
   #>     9,
   #>     10
   #>   ]
   #> -- child 1 type: double
   #>   [
   #>     0.669298,
   #>     0.75282,
   #>     0.408692,
   #>     0.784959,
   #>     0.108236,
   #>     0.354329,
   #>     0.30033,
   #>     0.251092,
   #>     0.0811526,
   #>     0.898208
   #>   ]
   .Internal(inspect( st$as_vector() ))
   #> @7fe931327548 19 VECSXP g0c2 [OBJ,REF(1),ATT] (len=2, tl=0)
   #>   @7fe92a7d3188 13 INTSXP g0c4 [REF(1)] (len=10, tl=0) 1,2,3,4,5,...
   #>   @7fe92a7db608 14 REALSXP g0c5 [REF(1)] (len=10, tl=0) 
0.669298,0.75282,0.408692,0.784959,0.108236,...
   #> ATTRIB:
   #>   @7fe9309aab40 02 LISTSXP g0c0 [REF(1)] 
   #>     TAG: @7fe92900b460 01 SYMSXP g1c0 [MARK,REF(65535),LCK,gp=0x4000] 
"row.names" (has value)
   #>     @7fe9308afb58 13 INTSXP g0c1 [REF(1)] (len=2, tl=0) -2147483648,-10
   #>     TAG: @7fe92900b690 01 SYMSXP g1c0 [MARK,REF(65535),LCK,gp=0x4000] 
"names" (has value)
   #>     @7fe931327408 16 STRSXP g0c2 [REF(3)] (len=2, tl=0)
   #>       @7fe92904ed18 09 CHARSXP g1c1 [MARK,REF(250),gp=0x61] [ASCII] 
[cached] "x"
   #>       @7fe92908e588 09 CHARSXP g1c1 [MARK,REF(36),gp=0x61] [ASCII] 
[cached] "y"
   #>     TAG: @7fe92900bbd0 01 SYMSXP g1c0 [MARK,REF(44995),LCK,gp=0x6000] 
"class" (has value)
   #>     @7fe92a6c10e8 16 STRSXP g0c3 [MARK,REF(3)] (len=3, tl=0)
   #>       @7fe92c4cdf00 09 CHARSXP g1c1 [MARK,REF(105),gp=0x61] [ASCII] 
[cached] "tbl_df"
   #>       @7fe92c4cdec8 09 CHARSXP g1c1 [MARK,REF(117),gp=0x61] [ASCII] 
[cached] "tbl"
   #>       @7fe92a825048 09 CHARSXP g1c2 [MARK,REF(476),gp=0x61,ATT] [ASCII] 
[cached] "data.frame"
   ```
   
   <sup>Created on 2021-09-24 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]


Reply via email to