AlenkaF opened a new pull request, #37974: URL: https://github.com/apache/arrow/pull/37974
### Rationale for this change If we call `to_batches()` on a empty `pa.Table` we currently get an empty list. But we should in this case get an empty `RecordBatch`. ### What changes are included in this PR? A check is added in `to_batches()` for empty tables. The change is only in the Python layer. I am not sure if we want this to be also dealt with on the C++ side. ### Are these changes tested? Test is added in `test_table.py` ### Are there any user-facing changes? There might be some changes for a user that is using the current `pa.Table.to_batches()` on an empty table that results in an empty list. With this change this should be changed to an empty `RecordBatch`. -- 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]
