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


##########
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:
   The current implementation itself only works by always having the first 
buffer set to null because so much code assumes `buffers[0]` to be checkable. 
@bkietz even pinged me about some issues he had when this wasn't respected.



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to