HaoYang670 commented on issue #1620: URL: https://github.com/apache/arrow-rs/issues/1620#issuecomment-1120381899
I got this error: ```rust ---- ipc::reader::tests::read_generated_files_014 stdout ---- ---- ipc::reader::tests::read_generated_files_014 stdout ---- thread 'ipc::reader::tests::read_generated_files_014' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Offsets buffer size (bytes): 0 isn't large enough for Binary. Length 0 needs 1")', arrow/src/ipc/reader.rs:276:29 ---- ipc::reader::tests::read_generated_streams_014 stdout ---- thread 'ipc::reader::tests::read_generated_streams_014' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Offsets buffer size (bytes): 0 isn't large enough for Binary. Length 0 needs 1")', arrow/src/ipc/reader.rs:276:29 ---- ipc::writer::tests::read_and_rewrite_generated_files_014 stdout ---- thread 'ipc::writer::tests::read_and_rewrite_generated_files_014' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Offsets buffer size (bytes): 0 isn't large enough for Binary. Length 0 needs 1")', arrow/src/ipc/reader.rs:276:29 ---- ipc::writer::tests::read_and_rewrite_generated_streams_014 stdout ---- thread 'ipc::writer::tests::read_and_rewrite_generated_streams_014' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Offsets buffer size (bytes): 0 isn't large enough for Binary. Length 0 needs 1")', arrow/src/ipc/reader.rs:276:29 ``` after deleting https://github.com/apache/arrow-rs/blob/master/arrow/src/array/data.rs#L737-L740 and https://github.com/apache/arrow-rs/blob/master/arrow/src/array/data.rs#L1052-L1055 I don't know how data is generated in arrow-testing. Do empty arrays have empty offsets buffer in the testing data? -- 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