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

Tiago Antao commented on ARROW-2926:
------------------------------------

After correcting for that, the segfault resurfaces later:
{code:python}
with pq.ParquetWriter('simple.parquet', simple_schema,
                      version='2.0',
                      compression='snappy', flavor='spark') as w:
    w.write_table(simple_table){code}
 

> 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