[
https://issues.apache.org/jira/browse/ORC-2029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gang Wu resolved ORC-2029.
--------------------------
Fix Version/s: 2.3.0
Resolution: Fixed
Issue resolved by pull request 2446
[https://github.com/apache/orc/pull/2446]
> support Float fast read by memcpy in DoubleColumnReader
> --------------------------------------------------------
>
> Key: ORC-2029
> URL: https://issues.apache.org/jira/browse/ORC-2029
> Project: ORC
> Issue Type: Improvement
> Reporter: Zehua Zou
> Assignee: Zehua Zou
> Priority: Minor
> Fix For: 2.3.0
>
>
> {code:cpp}
> uint64_t bufferNum = 0;
> if (isLittleEndian) {
> bufferNum = std::min(numValues,
> static_cast<size_t>(bufferEnd_ - bufferPointer_) /
> bytesPerValue_);
> uint64_t bufferBytes = bufferNum * bytesPerValue_;
> if (bufferBytes > 0) {
> memcpy(outArray, bufferPointer_, bufferBytes);
> bufferPointer_ += bufferBytes;
> }
> }
> {code}
> There is a fast read path when columnKind of `DoubleColumnReader` is
> `DOUBLE`. `Float` can use the same logic when `ValueType` is `float`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)