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

[jira] [Comment Edited] (PARQUET-1047) Anyway to write empty row group?

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

yugu edited comment on PARQUET-1047 at 6/28/17 8:42 PM:
--------------------------------------------------------

I know this is possible because as per [this post|https://issues.apache.org/jira/browse/PARQUET-104?jql=project%20%3D%20PARQUET%20AND%20text%20~%20%22empty%22] a empty row group was written to the back.


was (Author: elderrex):
I know this is possible because as per [https://issues.apache.org/jira/browse/PARQUET-104?jql=project%20%3D%20PARQUET%20AND%20text%20~%20%22empty%22]

> Anyway to write empty row group?
> --------------------------------
>
>                 Key: PARQUET-1047
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1047
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-cpp
>    Affects Versions: cpp-1.1.0
>            Reporter: yugu
>
> [Error]
> So I'm trying to write only header information (column names and such).
> {code:java}
> parquet::RowGroupWriter* rg_writer =
>                 file_writer->AppendRowGroup(0);
> for (i = 0; i < Cols; i++){
> parquet::BoolWriter* writer = static_cast<parquet::BoolWriter*>(rg_writer->NextColumn());
> writer->WriteBatch(0, nullptr, nullptr, nullptr);
> }
> {code}
> The problem is that when trying to close the file_writer, the program throws:
> {code:java}
> Parquet what error: Parquet Write error: Column 3 is not complete.
> {code}



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