Mola-maker commented on PR #12268: URL: https://github.com/apache/arrow-rs/pull/12268#issuecomment-7000742710
Handled it here. The nested case needed a second half of the fix: `write_array_data` also slices List children to the list's range (`get_list_array_buffers`), so for a zero-row slice of a List of REE values the counter was still walking the original 2-row values array. `append_variadic_buffer_counts` now mirrors the writer on both counts: it unslices RunEndEncoded arrays and slices List/LargeList/Map children before recursing, and the top-level special case from the first version is folded into the function. Your regression test is in as `test_roundtrip_stream_zero_rows_list_of_run_array_utf8_view` — it fails on the previous head with the same `Invalid variadic count 1 ...` error and passes now. Full arrow-ipc suite green (153 lib tests), fmt/clippy clean. Merge conflicts are resolved too. -- 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]
