[
https://issues.apache.org/jira/browse/ARROW-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525164#comment-16525164
]
Antoine Pitrou commented on ARROW-2744:
---------------------------------------
When trying the normalization idea, it turns out that some places rely on null
data buffers in an array:
* feather, notably for null arrays (but not only it seems)
* conversion from Numpy struct arrays, because it eases rechunking of the null
bitmap
Another issue with the normalization issue is that we're changing user-supplied
data without being asked to, which may lead to surprising bugs/issues.
> [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)