You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2021/08/19 05:29:00 UTC

[jira] [Created] (ARROW-13673) [C++] BinaryBuilder doesn't preserve passed in DataType

Micah Kornfield created ARROW-13673:
---------------------------------------

             Summary: [C++] BinaryBuilder doesn't preserve passed in DataType
                 Key: ARROW-13673
                 URL: https://issues.apache.org/jira/browse/ARROW-13673
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 5.0.0
            Reporter: Micah Kornfield


There is a [constructor|https://github.com/apache/arrow/blob/1430c93f68960e10a50d27f465eb174e76ac06b2/cpp/src/arrow/array/builder_binary.h#L56] that takes a datatype for binary builder but it is discarded.  When constructing an Array the type is always the value returned from type() [binary|https://github.com/apache/arrow/blob/1430c93f68960e10a50d27f465eb174e76ac06b2/cpp/src/arrow/array/builder_binary.h#L390]

If a consumer of the API wants to have an extension array this prevents them from passing the extension type though.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)