fenfeng9 commented on code in PR #50166:
URL: https://github.com/apache/arrow/pull/50166#discussion_r3497272089


##########
cpp/src/arrow/c/bridge.cc:
##########
@@ -608,7 +608,8 @@ struct ArrayExporter {
       export_.variadic_buffer_sizes_.resize(variadic_buffers.size());
       size_t i = 0;
       for (const auto& buf : variadic_buffers) {
-        export_.variadic_buffer_sizes_[i++] = buf->size();
+        // The C Data Interface allows null variadic buffer pointers with size 
0.

Review Comment:
   Agree. We should raise an error on export when the data is invalid. 



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