hombit opened a new pull request, #46357: URL: https://github.com/apache/arrow/pull/46357
### Rationale for this change Currently `pyarrow.Table.tostruct_array` fails if table is empty, this PR fixes that. See issue #46355 for the reproducible example. ### What changes are included in this PR? Check if table is empty and create an empty chunked array using table schema for the array type ### Are these changes tested? I added a test for that, it failed before I implemented the fix ### Are there any user-facing changes? No -- 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