zeroshade commented on code in PR #13381:
URL: https://github.com/apache/arrow/pull/13381#discussion_r898323159


##########
go/arrow/array/concat_test.go:
##########
@@ -289,13 +288,3 @@ func (cts *ConcatTestSuite) TestCheckConcat() {
                })
        }
 }
-
-func TestOffsetOverflow(t *testing.T) {
-       fakeOffsets := 
memory.NewBufferBytes(arrow.Int32Traits.CastToBytes([]int32{0, math.MaxInt32}))
-       fakeArr := array.NewStringData(array.NewData(arrow.BinaryTypes.String, 
1, []*memory.Buffer{nil, fakeOffsets, memory.NewBufferBytes([]byte{})}, nil, 0, 
0))
-       var err error
-       assert.NotPanics(t, func() {
-               _, err = array.Concatenate([]arrow.Array{fakeArr, fakeArr}, 
memory.DefaultAllocator)
-       })
-       assert.EqualError(t, err, "offset overflow while concatenating arrays")
-}

Review Comment:
   Ah gotcha, we're dying there rather than inside `Concatenate` good point. 
Okay then yea it makes sense to just remove this test since we can't hit this 
situation anymore with the addition of the panics for the bad offset arrays.



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