You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/06/24 16:49:00 UTC
[jira] [Assigned] (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 ]
Antoine Pitrou reassigned ARROW-13104:
--------------------------------------
Assignee: Antoine Pitrou
> [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
>
> 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)