mapleFU commented on issue #8247: URL: https://github.com/apache/arrow-rs/issues/8247#issuecomment-3237824050
Generally, next_offset would check this: ``` thread 'main' panicked at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-array/src/builder/generic_bytes_builder.rs:86:57: byte array offset overflow stack backtrace: 0: __rustc::rust_begin_unwind at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/std/src/panicking.rs:697:5 1: core::panicking::panic_fmt at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:75:14 2: core::panicking::panic_display at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/panicking.rs:269:5 3: core::option::expect_failed at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/option.rs:2049:5 4: core::option::Option<T>::expect at /rustc/6b00bc3880198600130e1cf62b8f8a93494488cc/library/core/src/option.rs:958:21 5: arrow_array::builder::generic_bytes_builder::GenericByteBuilder<T>::next_offset at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-array/src/builder/generic_bytes_builder.rs:86:57 6: arrow_array::builder::generic_bytes_builder::GenericByteBuilder<T>::append_array at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-array/src/builder/generic_bytes_builder.rs:154:17 7: arrow_select::concat::concat_bytes at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-select/src/concat.rs:239:9 8: arrow_select::concat::concat at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-select/src/concat.rs:426:27 9: arrow_select::concat::concat_batches at /home/fuxuwei/.cargo/git/checkouts/arrow-rs-91ac43a35d506e38/50a2ef3/arrow-select/src/concat.rs:489:21 ``` However, in some other case, it will leave negative final offset. I'll dive into it -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org