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

[jira] [Commented] (ARROW-2744) [Python] 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:comment-tabpanel&focusedCommentId=16523889#comment-16523889 ] 

Antoine Pitrou commented on ARROW-2744:
---------------------------------------

The gdb backtrace:
{code}
#0  0x00007f09b40fa770 in arrow::Buffer::data (this=0x0) at ../src/arrow/buffer.h:119
#1  0x00007f09a8685155 in parquet::arrow::(anonymous namespace)::ArrowColumnWriter::TypedWriteBatch<parquet::DataType<(parquet::Type::type)1>, arrow::Int32Type> (
    this=0x7ffd577fc660, array=..., num_levels=2, def_levels=0x18d2d40, rep_levels=0x1730f40) at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:415
#2  0x00007f09a8680a37 in parquet::arrow::(anonymous namespace)::ArrowColumnWriter::Write (this=0x7ffd577fc660, data=...)
    at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:895
#3  0x00007f09a867d6b8 in parquet::arrow::(anonymous namespace)::ArrowColumnWriter::Write (this=0x7ffd577fc660, data=..., offset=0, size=2)
    at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:341
#4  0x00007f09a868adb9 in parquet::arrow::FileWriter::Impl::WriteColumnChunk (this=0x1ad7830, data=..., offset=0, size=2)
    at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:995
#5  0x00007f09a868114d in parquet::arrow::FileWriter::WriteColumnChunk (this=0x1c1b0d0, data=..., offset=0, size=2)
    at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:1025
#6  0x00007f09a8681a85 in parquet::arrow::FileWriter::WriteTable (this=0x1c1b0d0, table=..., chunk_size=2)
    at /home/antoine/parquet-cpp/src/parquet/arrow/writer.cc:1100
[...]
{code}

> [Python] 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
>            Assignee: Antoine Pitrou
>            Priority: Major
>             Fix For: 0.10.0
>
>
> 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 least one non-empty list, the issue disappears.
>  



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