pitrou commented on code in PR #37174:
URL: https://github.com/apache/arrow/pull/37174#discussion_r1299804990


##########
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:
   I initially missed this, but is there a reason we want to allow this? We 
don't have any legacy implementations to worry about for this new datatype.



-- 
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]

Reply via email to