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

Wes McKinney closed ARROW-2926.
-------------------------------
       Resolution: Duplicate
    Fix Version/s: 0.10.0

Use {{pa.array}} instead of {{pa.Array}} to create arrays. Using {{pa.Array}} 
directly in master branch or 0.10.0 raises an exception

> Basic error with table creation from array in pyarrow
> -----------------------------------------------------
>
>                 Key: ARROW-2926
>                 URL: https://issues.apache.org/jira/browse/ARROW-2926
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.9.0
>            Reporter: Tiago Antao
>            Priority: Critical
>             Fix For: 0.10.0
>
>
> I get a segmentation fault with simply printing a basic table creation from 
> arrays:
>  
> {code:python}
> import pyarrow as pa
> import pyarrow.parquet as pq
> simple_fields = [
>     pa.field('POS', pa.uint32()),
>     pa.field('desc', pa.string())
> ]
> simple_schema = pa.schema(simple_fields)
> simple_from_array = [pa.Array([1]), pa.Array(['bla'])]
> simple_table = pa.Table.from_arrays(simple_from_array, ['POS', 'desc'])
> print(simple_table)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to