You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Marco Neumann (JIRA)" <ji...@apache.org> on 2017/07/26 11:12:00 UTC
[jira] [Assigned] (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 ]
Marco Neumann reassigned ARROW-1276:
------------------------------------
Assignee: Marco Neumann
> 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
>
> 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
(v6.4.14#64029)