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


##########
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:
   We should distinguish between what we're doing internally in Arrow C++ and 
what we export/import using the C Data Interface. I'm not sure accepting a 
buffer for REE arrays makes sense if we don't export such a buffer.



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