pitrou commented on code in PR #14877:
URL: https://github.com/apache/arrow/pull/14877#discussion_r1043516663
##########
go/arrow/cdata/cdata_exports.go:
##########
@@ -353,7 +366,7 @@ func exportArray(arr arrow.Array, out *CArrowArray,
outSchema *CArrowSchema) {
buffers := allocateBufferPtrArr(len(arr.Data().Buffers()))
for i := range arr.Data().Buffers() {
buf := arr.Data().Buffers()[i]
- if buf == nil {
+ if buf == nil || buf.Len() == 0 {
Review Comment:
This doesn't seem mandatory either.
--
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]