Repository navigation
Commit c4a0850
water
### Rationale for this change
`pyarrow.compute.indices_nonzero()` segfaults (SIGSEGV) on a `ChunkedArray` with zero chunks. A zero-length `Array` and a `ChunkedArray` holding one empty chunk both work; only the chunkless case crashes.
### Are these changes tested?
Yes, by new test case.
### Are there any user-facing changes?
Only a bugfix.
* GitHub Issue: #51018
Authored-by: waterWang <[email protected]>
Signed-off-by: Rok Mihevc <[email protected]>
1 parent 875cd2e commit c4a0850
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2920 | 2920 | | |
2921 | 2921 | | |
2922 | 2922 | | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
2923 | 2931 | | |
2924 | 2932 | | |
2925 | 2933 | | |
| |||
0 commit comments