[
https://issues.apache.org/jira/browse/ARROW-5992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney updated ARROW-5992:
--------------------------------
Fix Version/s: (was: 1.0.0)
0.15.0
> [C++] Array::View fails for string/utf8 as binary
> -------------------------------------------------
>
> Key: ARROW-5992
> URL: https://issues.apache.org/jira/browse/ARROW-5992
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Wes McKinney
> Assignee: Wes McKinney
> Priority: Major
> Fix For: 0.15.0
>
>
> I encountered this
> {code}
> -- Arrow Fatal Error --
> Invalid: Can't view array of type string as binary: not enough buffers for
> view type
> In ../src/arrow/array.cc, line 1049, code: CheckInputAvailable()
> In ../src/arrow/array.cc, line 1100, code: impl.MakeDataView(out_field,
> &out_data)
> {code}
> when trying to add a {{BinaryWithRepeats}} function to
> {{RandomArrayGenerator}}
> {code}
> std::shared_ptr<Array> out;
> auto strings = StringWithRepeats(size, unique, min_length, max_length,
> null_probability);
> ABORT_NOT_OK(strings->View(binary(), &out));
> return out;
> {code}
> It looks like utf8 <-> binary view simply aren't tested in array-view-test
--
This message was sent by Atlassian Jira
(v8.3.2#803003)