thisisnic commented on issue #42200: URL: https://github.com/apache/arrow/issues/42200#issuecomment-7131735331
Thanks for reporting this! I'm going through older bug issues to see if we can close them out or we need further action. I could not reproduce the segfault or the incorrect count on pyarrow 26.0.0. With a chunked `string` array holding 2.75 GB of distinct values, `pc.count_distinct`, `pc.unique` and `pc.value_counts` each raise `ArrowCapacityError: array cannot contain more than 2147483646 bytes, have 2147483700`. With more than 2 GiB of total data but fewer distinct values the count is correct, and casting to `large_string` gives the correct count in the all-distinct case. So the offset overflow is now checked and reported as an error, which is what this issue asked for. Closing; please reopen with the pyarrow version and a reprex if you still see a crash or a wrong count on a current release. -- 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]
