[
https://issues.apache.org/jira/browse/PARQUET-1160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16590873#comment-16590873
]
ASF GitHub Bot commented on PARQUET-1160:
-----------------------------------------
thaining opened a new pull request #495: PARQUET-1160: [C++] Implement
BYTE_ARRAY-backed Decimal reads
URL: https://github.com/apache/parquet-cpp/pull/495
This change enables support for DECIMALs backed by BYTE_ARRAYs
on disk. It does this by creating a TransferFunctor routine that
transforms a ByteArrayType to an ::arrow::Decimal128Type.
The routine does this by:
1. Creating an arrow::BinaryArray from the RecordReader's builder
2. Allocating a buffer for the arrow::Decimal128Array
3. Converting the big-endian bytes in each BinaryArray entry to two integers
representing the high and low bits of each decimal value.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> [C++] Implement BYTE_ARRAY-backed Decimal reads
> -----------------------------------------------
>
> Key: PARQUET-1160
> URL: https://issues.apache.org/jira/browse/PARQUET-1160
> Project: Parquet
> Issue Type: Task
> Components: parquet-cpp
> Affects Versions: cpp-1.3.0
> Reporter: Phillip Cloud
> Assignee: Phillip Cloud
> Priority: Major
> Labels: pull-request-available
> Attachments: 20180726193815980.parquet
>
>
> These are valid in the parquet spec, but it seems like no system in use today
> implements a writer for this type.
> What systems support writing Decimals with this underlying type?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)