You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Anton Daitche (JIRA)" <ji...@apache.org> on 2018/06/26 07:41:00 UTC

[jira] [Updated] (ARROW-2744) Writing to parquet crashes when writing a ListArray of empty lists

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

Anton Daitche updated ARROW-2744:
---------------------------------
    Description: 
When writing a ListArray which contains only empty lists to Parquet, Pyarrow crashes. Here is a minimal code snippet which reproduces the crash:
{code:java}
import pyarrow as pa
from pyarrow import parquet as pq

array = pa.array([[]], type=pa.list_(pa.int32()))
table = pa.Table.from_arrays([array], ["A"])
pq.write_table(table, "tmp.parq"){code}
When the ListArray has at leas one non-empty list, the issue disappears.

 

  was:
When writing a ListArray which contains only empty lists to Parquet, pyarrow crashes. Here is a minimal code snippet which reproduces the crash:
{code:java}
import pyarrow as pa
from pyarrow import parquet as pq

array = pa.array([[]], type=pa.list_(pa.int32()))
table = pa.Table.from_arrays([array], ["A"])
pq.write_table(table, "tmp.parq"){code}
When the ListArray has at leas one non-empty list, the issue disappears.

 


> Writing to parquet crashes when writing a ListArray of empty lists 
> -------------------------------------------------------------------
>
>                 Key: ARROW-2744
>                 URL: https://issues.apache.org/jira/browse/ARROW-2744
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.9.0
>         Environment: Python Version: 3.6.3 (Anaconda)
> OS: OSX and Linux
>            Reporter: Anton Daitche
>            Priority: Major
>
> When writing a ListArray which contains only empty lists to Parquet, Pyarrow crashes. Here is a minimal code snippet which reproduces the crash:
> {code:java}
> import pyarrow as pa
> from pyarrow import parquet as pq
> array = pa.array([[]], type=pa.list_(pa.int32()))
> table = pa.Table.from_arrays([array], ["A"])
> pq.write_table(table, "tmp.parq"){code}
> When the ListArray has at leas one non-empty list, the issue disappears.
>  



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