agoose77 opened a new issue, #37437:
URL: https://github.com/apache/arrow/issues/37437
### Describe the bug, including details regarding any error messages,
version, and platform.
Consider the following call to `utf8_split_whitespace`
```python
import pyarrow as pa
import pyarrow.compute as pc
result = pc.utf8_split_whitespace(
pa.array([], type=pa.large_string()),
)
print(result.type)
print(result.buffers())
```
The returned type is `list<item: large_string>`, but the returned offset
buffer has `size=4`, not `size=8`. I expect to see `size=8`, pertaining to a
length-one array of `int64` (a single zero)
For a non-empty array, the size is correct.
We've encountered this in Awkward Array
(https://github.com/scikit-hep/awkward/pull/2679#issuecomment-1697469490).
Thanks!
### Component(s)
Python
--
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]