You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/08/24 20:51:00 UTC

[jira] [Assigned] (ARROW-6263) [Python] RecordBatch.from_arrays does not check array types against a passed schema

     [ https://issues.apache.org/jira/browse/ARROW-6263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney reassigned ARROW-6263:
-----------------------------------

    Assignee: Wes McKinney

> [Python] RecordBatch.from_arrays does not check array types against a passed schema
> -----------------------------------------------------------------------------------
>
>                 Key: ARROW-6263
>                 URL: https://issues.apache.org/jira/browse/ARROW-6263
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: beginner, pull-request-available
>             Fix For: 0.15.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Example came from ARROW-6038
> {code}
> In [4]: pa.RecordBatch.from_arrays([pa.array([])], schema)                                                  
> Out[4]: <pyarrow.lib.RecordBatch at 0x7fc36fa18db8>
> In [5]: rb = pa.RecordBatch.from_arrays([pa.array([])], schema)                                             
> In [6]: rb                                                                                                  
> Out[6]: <pyarrow.lib.RecordBatch at 0x7fc37d9c69f8>
> In [7]: rb.schema                                                                                           
> Out[7]: col: string
> In [8]: rb[0]                                                                                               
> Out[8]: 
> <pyarrow.lib.NullArray object at 0x7fc36fa8ce08>
> 0 nulls
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)