Wes McKinney created ARROW-6263: ----------------------------------- Summary: [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 Fix For: 0.15.0
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 (v7.6.14#76016)