zeroshade commented on issue #625:
URL: https://github.com/apache/arrow-go/issues/625#issuecomment-3755522393
I added a test case locally that shows what I mean:
```go
// Case 3: All Null
ab3 := array.NewBinaryBuilder(mem, arrow.BinaryTypes.Binary)
defer ab3.Release()
ab3.AppendNull()
ab3.AppendNull()
ab3.AppendNull()
ar3 := ab3.NewBinaryArray()
defer ar3.Release()
assert.Equal(t, 3, ar3.Len())
assert.Equal(t, 3, ar3.NullN(), "all values should be null")
for i := 0; i < 3; i++ {
assert.True(t, ar3.IsNull(i), "value %d should be null", i)
assert.Empty(t, ar3.Value(i), "value %d should be nil", i)
assert.Zero(t, len(ar3.Value(i)), "value %d should be empty
slice", i)
}
```
--
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]