tahsinreza opened a new issue, #34633:
URL: https://github.com/apache/arrow/issues/34633

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   
   I'm trying to read the following field in a parquet file using the Stream 
Reader C++ API (I didn't create the parquet file):
   
   Schema output:
   ```text
   optional fixed_len_byte_array(16) field_id=-1 processstarted_seconds 
(Decimal(precision=38, scale=18));
   ```
   
   ```c++
   // code
   optional<std::array<char, 16>> processstarted_seconds;
   ... 
   stream_reader >> columns_obj.processstarted_seconds;
   // code
   ```
   
   When I run the above code, I get the following runtime error message:
   ```text
   what():  Column converted type mismatch.  Column 'processstarted_seconds' 
has converted type 'DECIMAL' not 'NONE'
   ```
   
   The error is originating here: 
https://github.com/apache/arrow/blob/main/cpp/src/parquet/stream_reader.cc#L158
   
   Note that I'm able to read the FIXED_LEN_BYTE_ARRAY type with 
parquet::ConvertedType::NONE. For example, the following works fine.
   Schema output:
   ```text
   optional fixed_len_byte_array(4) field_id=-1 country_char[4];
   ```
   
   I'm using Arrow-Parquet C++ v9.0.0.
   
   Thanks for your help.
   
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to