You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "tahsinreza (via GitHub)" <gi...@apache.org> on 2023/03/16 19:59:30 UTC

[GitHub] [arrow] tahsinreza opened a new issue, #34594: How to read Decimal type in Stream Reader C++ API

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

   ### Describe the usage question you have. Please include as many useful details as  possible.
   
   
   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:
   optional fixed_len_byte_array(16) field_id=-1 processstarted_seconds (Decimal(precision=38, scale=18));
   
   // 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:
   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:
   optional fixed_len_byte_array(4) field_id=-1 country_char[4];
   
   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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] mapleFU commented on issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API

Posted by "mapleFU (via GitHub)" <gi...@apache.org>.
mapleFU commented on issue #34594:
URL: https://github.com/apache/arrow/issues/34594#issuecomment-1595661472

   According to https://github.com/apache/arrow/issues/34633#issuecomment-1595655286
   Can this issue be closed?


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] wgtmac commented on issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on issue #34594:
URL: https://github.com/apache/arrow/issues/34594#issuecomment-1491377823

   This is a duplicate issue: https://github.com/apache/arrow/issues/34633
   
   If the related patch solves the problem, please feel free to close this one.
   
   Let me know if you have any question.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] tahsinreza commented on issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API

Posted by "tahsinreza (via GitHub)" <gi...@apache.org>.
tahsinreza commented on issue #34594:
URL: https://github.com/apache/arrow/issues/34594#issuecomment-1492304724

   Thanks for letting me know. I'll test the updated code next week and get back to you.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] wgtmac commented on issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on issue #34594:
URL: https://github.com/apache/arrow/issues/34594#issuecomment-1595792484

   > According to [#34633 (comment)](https://github.com/apache/arrow/issues/34633#issuecomment-1595655286) Can this issue be closed?
   
   Yes, let me close it.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] wgtmac closed issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac closed issue #34594: [C++][Parquet] How to read Decimal type in Stream Reader C++ API
URL: https://github.com/apache/arrow/issues/34594


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org