[ 
https://issues.apache.org/jira/browse/ARROW-1557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172749#comment-16172749
 ] 

ASF GitHub Bot commented on ARROW-1557:
---------------------------------------

Github user wesm commented on the issue:

    https://github.com/apache/arrow/pull/1117
  
    here's a fix to cherry pick 
https://github.com/wesm/arrow/commit/965a560867f45025dcbfe50c572593faa7d7cb33


> [PYTHON] pyarrow.Table.from_arrays doesn't validate names length
> ----------------------------------------------------------------
>
>                 Key: ARROW-1557
>                 URL: https://issues.apache.org/jira/browse/ARROW-1557
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.7.0
>            Reporter: Tom Augspurger
>            Assignee: Tom Augspurger
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 0.8.0
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> pa.Table.from_arrays doesn't validate that the length of {{arrays}} and 
> {{names}} matches. I think this should raise with a {{ValueError}}:
> {code}
> In [1]: import pyarrow as pa
> In [2]: pa.Table.from_arrays([pa.array([1, 2]), pa.array([3, 4])], 
> names=['a', 'b', 'c'])
> Out[2]:
> pyarrow.Table
> a: int64
> b: int64
> In [3]: pa.__version__
> Out[3]: '0.7.0'
> {code}
> (This is my first time using JIRA, hopefully I didn't mess up too badly)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to