You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2017/09/12 21:43:00 UTC

[jira] [Commented] (PARQUET-1015) Object categoricals are not serialized when only None is present

    [ https://issues.apache.org/jira/browse/PARQUET-1015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16163709#comment-16163709 ] 

Uwe L. Korn commented on PARQUET-1015:
--------------------------------------

PR: https://github.com/apache/parquet-cpp/pull/393

> Object categoricals are not serialized when only None is present
> ----------------------------------------------------------------
>
>                 Key: PARQUET-1015
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1015
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>    Affects Versions: cpp-1.1.0
>            Reporter: Marco Neumann
>            Assignee: Uwe L. Korn
>            Priority: Minor
>             Fix For: cpp-1.3.0
>
>
> The following code sample fails with {{pyarrow.lib.ArrowNotImplementedError: NotImplemented: unhandled type}} but should not:
> {noformat}
> import pandas as pd
> import pyarrow as pa
> import pyarrow.parquet as pq
> df = pd.DataFrame({'x': [None]})
> df['x'] = df['x'].astype('category')
> table = pa.Table.from_pandas(df)
> buf = pa.InMemoryOutputStream()
> pq.write_table(table, buf)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)