You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Rok Mihevc (Jira)" <ji...@apache.org> on 2023/01/11 07:14:04 UTC
[jira] [Updated] (ARROW-1276) Cannot serializer empty DataFrame to parquet
[ https://issues.apache.org/jira/browse/ARROW-1276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rok Mihevc updated ARROW-1276:
------------------------------
External issue URL: https://github.com/apache/arrow/issues/17195
> Cannot serializer empty DataFrame to parquet
> --------------------------------------------
>
> Key: ARROW-1276
> URL: https://issues.apache.org/jira/browse/ARROW-1276
> Project: Apache Arrow
> Issue Type: Bug
> Components: Python
> Affects Versions: 0.5.0
> Reporter: Marco Neumann
> Assignee: Marco Neumann
> Priority: Minor
> Fix For: 0.6.0
>
>
> The following code fails with {{pyarrow.lib.ArrowInvalid: Invalid: chunk size per row_group must be greater than 0}} but should not:
> {noformat}
> import pandas as pd
> import pyarrow as pa
> import pyarrow.parquet as pq
> df = pd.DataFrame({'x': pd.Series([], dtype=int)})
> table = pa.Table.from_pandas(df)
> buf = pa.InMemoryOutputStream()
> pq.write_table(table, buf)
> {noformat}
> I have a test and a fix prepared and will upstream both in the upcoming days.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)