You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/08/16 16:59:00 UTC
[jira] [Commented] (ARROW-5085) [Python/C++] Conversion of dict
encoded null column fails in parquet writing when using RowGroups
[ https://issues.apache.org/jira/browse/ARROW-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16909214#comment-16909214 ]
Wes McKinney commented on ARROW-5085:
-------------------------------------
This is now fixed in master, presumably by ARROW-3246. I'll add a unit test. Note that version=2.0 files should not be used, see PARQUET-458
> [Python/C++] Conversion of dict encoded null column fails in parquet writing when using RowGroups
> -------------------------------------------------------------------------------------------------
>
> Key: ARROW-5085
> URL: https://issues.apache.org/jira/browse/ARROW-5085
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.13.0
> Reporter: Florian Jetter
> Priority: Minor
> Labels: parquet
>
> Conversion of dict encoded null column fails in parquet writing when using RowGroups
> {code:python}
> import pyarrow.parquet as pq
> import pandas as pd
> import pyarrow as pa
> df = pd.DataFrame({"col": [None] * 100, "int": [1.0] * 100})
> df = df.astype({"col": "category"})
> table = pa.Table.from_pandas(df)
> buf = pa.BufferOutputStream()
> pq.write_table(
> table,
> buf,
> version="2.0",
> chunk_size=10,
> )
> {code}
> fails with
> {{pyarrow.lib.ArrowIOError: Column 2 had 100 while previous column had 10}}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)