thisisnic commented on issue #39190:
URL: https://github.com/apache/arrow/issues/39190#issuecomment-7185567543
Thanks for reporting this, and for the analysis! I'm going through older bug
issues to see if we can close them out. I used an AI agent to run a reduced
version of this, and I've reviewed the results.
----------------
🤖 :
The diagnosis above is right: the summed key lengths in
`GrouperImpl::Consume` overflowed `int32_t`. That was fixed by #55170 (for
#54885), which makes those offsets and the total length 64-bit. It is on `main`
and will be in 27.0.0.
A lower-memory variant of the script above (2200 `large_utf8` keys of 1 MiB
each, 2.15 GiB of key bytes in one batch,
`group_by(["id"]).aggregate([("other", "max")])`):
| pyarrow | result |
|---|---|
| 26.0.1 | aborts: `std::length_error`, `cannot create std::vector larger
than max_size()` |
| 27.0.0.dev166 (nightly wheel) | OK, 1 group |
The original script (two keys of 2**31 - 2 bytes, with a `large_utf8` value
column) was not run, as it needs about 10 GB.
Closing as fixed. If you still see this on 27.0.0 or later, please open a
new issue.
--
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]