bkietz commented on code in PR #37174:
URL: https://github.com/apache/arrow/pull/37174#discussion_r1300503396
##########
cpp/src/arrow/c/bridge.cc:
##########
@@ -1601,6 +1621,23 @@ struct ArrayImporter {
return Status::OK();
}
+ Status Visit(const RunEndEncodedType& type) {
+ RETURN_NOT_OK(CheckNumChildren(2));
+ if (c_struct_->n_buffers == 1) {
+ // REE arrays are not required to have any buffer,
+ // but an empty validity bitmap buffer is allowed.
+ RETURN_NOT_OK(AllocateArrayData());
Review Comment:
Agreed, I wouldn't expect any exporters of REE arrays to emplace the
placeholder null buffer. Let's remove the above check `if (c_struct_->n_buffers
== 1) {` and require zero buffers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]