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/01 19:01:04 UTC

[jira] [Created] (PARQUET-1014) Conflicts in declaring Column Writer of same type

yugu created PARQUET-1014:
-----------------------------

             Summary: Conflicts in declaring Column Writer of same type
                 Key: PARQUET-1014
                 URL: https://issues.apache.org/jira/browse/PARQUET-1014
             Project: Parquet
          Issue Type: Bug
          Components: parquet-cpp
    Affects Versions: cpp-1.1.0
            Reporter: yugu
            Priority: Minor


Error when trying to write multiple row groups and declare column writer (compile passes tho running into mem mapping issue)

I've been trying to do something like write several int/double columns, yet the second declaration of writer of the same type using next column crashes.

eg. say I have [int64.int64.int64,...double,double]

for (int __c = 0; __c < #columns; __c++)
{
    if (type == int64)
    {
        parquet::Int64Writer* int64_writer = static_cast<parquet::Int64Writer*>(rg_writer->NextColumn());
    }
    else if (type == double)
    {
        parquet::DoubleWriter *double_writer = static_cast<parquet::DoubleWriter *>(rg_writer->NextColumn());
    }
}

I've been looking through the examples in parquet-cpp repo but could not find a fix (or similar example).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)