romainfrancois edited a comment on pull request #11369:
URL: https://github.com/apache/arrow/pull/11369#issuecomment-942064563


   🤔 something is wrong all these should be `TRUE`: 
   
   ``` r
   library(arrow, warn.conflicts = FALSE)
   #> See arrow_info() for available features
   
   a <- ChunkedArray$create(c(1, 2, 3), c(4, 5, 6))
   b <- ChunkedArray$create(c(7, 8, 9))
   c <- Array$create(c(10, 11, 12))
   d <- Array$create(c(13, 14, 15))
   e <- ChunkedArray$create(c(16, 17), c(18, 19))
   
   x <- ChunkedArray$create(a$as_vector(), b$as_vector(), c$as_vector(), d, e)
   x$num_chunks
   #> [1] 7
   
   arrow:::test_same_Array(a$chunk(0)$pointer(), x$chunk(0)$pointer())
   #> [1] TRUE
   arrow:::test_same_Array(a$chunk(1)$pointer(), x$chunk(1)$pointer())
   #> [1] TRUE
   arrow:::test_same_Array(b$chunk(0)$pointer(), x$chunk(2)$pointer())
   #> [1] TRUE
   arrow:::test_same_Array(c$pointer(),          x$chunk(3)$pointer())
   #> [1] FALSE
   arrow:::test_same_Array(d$pointer(),          x$chunk(4)$pointer())
   #> [1] FALSE
   arrow:::test_same_Array(e$chunk(0)$pointer(), x$chunk(5)$pointer())
   #> [1] TRUE
   arrow:::test_same_Array(e$chunk(1)$pointer(), x$chunk(6)$pointer())
   #> [1] TRUE
   ```
   
   <sup>Created on 2021-10-13 by the [reprex 
package](https://reprex.tidyverse.org) (v2.0.1.9000)</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