You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/06/24 16:52:00 UTC
[jira] [Updated] (ARROW-13104) [C++] ByteStreamSplit implementation
uses invalid pointer cast
[ https://issues.apache.org/jira/browse/ARROW-13104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-13104:
-----------------------------------
Labels: pull-request-available (was: )
> [C++] ByteStreamSplit implementation uses invalid pointer cast
> --------------------------------------------------------------
>
> Key: ARROW-13104
> URL: https://issues.apache.org/jira/browse/ARROW-13104
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Antoine Pitrou
> Assignee: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> This code in {{src/parquet/encoding.cc}}:
> {code:c++}
> template <>
> void ByteStreamSplitEncoder<FloatType>::PutArrowArray(const ::arrow::Array& values) {
> DirectPutImpl<::arrow::FloatArray>(values,
> reinterpret_cast<::arrow::BufferBuilder*>(&values_));
> }
> template <>
> void ByteStreamSplitEncoder<DoubleType>::PutArrowArray(const ::arrow::Array& values) {
> DirectPutImpl<::arrow::DoubleArray>(
> values, reinterpret_cast<::arrow::BufferBuilder*>(&values_));
> }
> {code}
> Casts a {{TypedBufferBuilder<T>\*}} to a {{BufferBuilder<T>\*}}. Apparently it works by chance...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)