You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Caleb Epstein (Jira)" <ji...@apache.org> on 2022/01/03 16:47:00 UTC

[jira] [Created] (ARROW-15236) Cannot stream Dates to Parquet

Caleb Epstein created ARROW-15236:
-------------------------------------

             Summary: Cannot stream Dates to Parquet
                 Key: ARROW-15236
                 URL: https://issues.apache.org/jira/browse/ARROW-15236
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 6.0.1
            Reporter: Caleb Epstein
         Attachments: parquet.cpp

I cannot for the life of me figure out how to write a DATE to a Parquet file using the parquet::StreamWriter API.  See attached example code, which generates this exception when writing the second column:
{code:java}
❯ ./parquet
terminate called after throwing an instance of 'parquet::ParquetException'
  what():  Column converted type mismatch.  Column 'date' has converted type[DATE] not 'INT_32'
{code}
I have also tried:
* Declaring the field's type as `INT64`, which yields the exception {{DATE can only annotate INT32}} when defining the schema.
* Declaring the field using the alternate version of {{Make}} with {{LogicalType::Date(), Type::INT32}}.  This yields the same exception as the code attached.




--
This message was sent by Atlassian Jira
(v8.20.1#820001)