Repository navigation
Commit 7e25ef2
ARROW-13111: [R] altrep vectors for ChunkedArray
``` r
library(arrow, warn.conflicts = FALSE)
#> See arrow_info() for available features
(c_str <- ChunkedArray$create(c("un", "deux"), c("trois", "quatre")))
#> ChunkedArray
#> [
#> [
#> "un",
#> "deux"
#> ],
#> [
#> "trois",
#> "quatre"
#> ]
#> ]
(v_str <- c_str$as_vector())
#> [1] "un" "deux" "trois" "quatre"
.Internal(inspect(v_str))
#> @7ff3ff98f540 16 STRSXP g0c0 [REF(65535)] arrow::ChunkedArray<0x7ff3f64a2128, string, 2 chunks, 0 nulls> len=4
```
<sup>Created on 2021-10-08 by the [reprex package](https://reprex.tidyverse.org) (v2.0.1.9000)</sup>
Only dealing with strings for now, int and double coming next.
Closes #11369 from romainfrancois/ARROW_13111_chunked_array_altrep
Lead-authored-by: Romain Francois <[email protected]>
Co-authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>1 parent c038e61 commit 7e25ef2
15 files changed
Lines changed: 380 additions & 195 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| 169 | + | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | 192 | | |
192 | 193 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments