You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/10/19 07:29:38 UTC

[GitHub] [arrow] jorisvandenbossche commented on a change in pull request #11457: ARROW-13784: [Python] Table.from_arrays should raise an error when array is empty but names is not

jorisvandenbossche commented on a change in pull request #11457:
URL: https://github.com/apache/arrow/pull/11457#discussion_r731571317



##########
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:
       The reason for the error on CI is because now `pa.table([])` is failing (I think because in that case ``names=None``, and then `len(names)` doesn't work)




-- 
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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org