thisisnic commented on issue #45385:
URL: https://github.com/apache/arrow/issues/45385#issuecomment-7185396324

   Thanks for reporting this! I'm going through older bug issues to see if we 
can close them out. I used an AI agent to build a reprex and run it across 
versions, and I've reviewed the results.
   
   ----------------
   
   🤖 :
   
   This looks like the same problem as #43660 (a cast between string types with 
different offset widths, applied to many slices of one array), which was fixed 
by #48171 and released in 23.0.0.
   
   There was no reprex above, so this is a constructed one: 500 slices of a 
single `large_string` array passed to `pa.Table.from_arrays([chunked_array], 
schema=...)` with a `string` schema. Extra memory allocated by that call:
   
   | pyarrow | with `schema=` | with `names=` | `combine_chunks()` then 
`schema=` |
   |---|---|---|---|
   | 18.1.0 | 1002 MB | 0 MB | 9 MB |
   | 22.0.0 | 1002 MB | 0 MB | 9 MB |
   | 23.0.0 | 4 MB | 0 MB | 9 MB |
   | 26.0.1 | 4 MB | 0 MB | 9 MB |
   
   With 9-row slices, the offsets buffers of chunks 1, 2 and 4 on 18.1.0 are 
76, 112 and 184 bytes, the same sizes as in the buffer dump above; on 23.0.0 
they are 40 bytes each.
   
   Closing as fixed. Please reopen if you still see this on 23.0.0 or later.
   


-- 
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]

Reply via email to