Commit a45b3f9
committed
Fix
Invalid indices were used with `OffsetArray`s as 1-based indexing was assumed.
Fix this, and always wrap them in a `ToArrow` objet so that they are consistently
turned into 1-based arrays.
This allows dropping special code for `CategoricalArray` in favor of using the
standard `DataAPI.refpool` API combined with the Arrow extension point added to
CategoricalArrays.OffsetArray support and clean CategoricalArray support1 parent 78e4f4b commit a45b3f9
File tree
5 files changed
+19
-27
lines changed- src
- ArrowTypes
- src
- test
- arraytypes
5 files changed
+19
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
| 408 | + | |
408 | 409 | | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
| 415 | + | |
418 | 416 | | |
419 | 417 | | |
420 | 418 | | |
| |||
442 | 440 | | |
443 | 441 | | |
444 | 442 | | |
445 | | - | |
| 443 | + | |
| 444 | + | |
446 | 445 | | |
447 | 446 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
195 | 205 | | |
196 | 206 | | |
197 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
| 230 | + | |
| 231 | + | |
246 | 232 | | |
247 | 233 | | |
248 | 234 | | |
| |||
278 | 264 | | |
279 | 265 | | |
280 | 266 | | |
281 | | - | |
282 | 267 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | 268 | | |
287 | 269 | | |
288 | 270 | | |
| |||
0 commit comments