jorisvandenbossche commented on a change in pull request #11457:
URL: https://github.com/apache/arrow/pull/11457#discussion_r731775431
##########
File path: python/pyarrow/table.pxi
##########
@@ -571,6 +571,10 @@ cdef _schema_from_arrays(arrays, names, metadata,
shared_ptr[CSchema]* schema):
if metadata is not None:
c_meta = KeyValueMetadata(metadata).unwrap()
+ if len(names) != K:
Review comment:
I would maybe add a test for the `pa.table([])` case in `test_table.py`
(since right now that was only failing in an unrelated test file because we
used it there to create the expected 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]