js8544 commented on issue #34300: URL: https://github.com/apache/arrow/issues/34300#issuecomment-1441304843
Hi @chenyuanxing, by definition all fields in a RecordBatch must have the same length. It is noted in https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc: > Semantically, a record batch is an ordered collection of arrays, known as its fields, each having the **same length** as one another ... P.S. Not related to this issue but it's recommended to use `ARROW_RETURN_NOT_OK` and `ARROW_ASSIGN_OR_RAISE` to deal with `arrow::Status` and `arrow::Result`s instread of manually checking them. See https://arrow.apache.org/cookbook/cpp/basic.html#working-with-status-and-result -- 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]
