You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/05/14 19:18:00 UTC
[jira] [Updated] (ARROW-8799) [C++][Dataset] Reading list column as
nested dictionary segfaults
[ https://issues.apache.org/jira/browse/ARROW-8799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-8799:
----------------------------------
Labels: dataset pull-request-available (was: dataset)
> [C++][Dataset] Reading list column as nested dictionary segfaults
> -----------------------------------------------------------------
>
> Key: ARROW-8799
> URL: https://issues.apache.org/jira/browse/ARROW-8799
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Joris Van den Bossche
> Priority: Major
> Labels: dataset, pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Python example:
> {code}
> import pyarrow as pa
> import pyarrow.parquet as pq
> from pyarrow.tests import util
>
> repeats = 10
> nunique = 5
> data = [
> [[util.rands(10)] for i in range(nunique)] * repeats,
> ]
> table = pa.table(data, names=['f0'])
> pq.write_table(table, "test_dictionary.parquet")
> {code}
> Reading with the parquet code works:
> {code}
> >>> pq.read_table("test_dictionary.parquet", read_dictionary=['f0.list.item'])
> pyarrow.Table
> f0: list<item: dictionary<values=string, indices=int32, ordered=0>>
> child 0, item: dictionary<values=string, indices=int32, ordered=0>
> {code}
> but doing the same with the datasets API segfaults:
> {code}
> >>> fmt = ds.ParquetFileFormat(read_options=dict(dictionary_columns=["f0.list.item"]))
> >>> dataset = ds.dataset("test_dictionary.parquet", format=fmt)
> >>> dataset.to_table()
> Segmentation fault (core dumped)
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)