Skip to content

Commit

Permalink
Update data_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroshade authored Jun 21, 2024
1 parent 7c1abbd commit 464b1b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/arrow/array/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package array

import (
"slices"
"testing"

"github.com/apache/arrow/go/v17/arrow"
Expand Down Expand Up @@ -56,7 +57,7 @@ func TestSizeInBytes(t *testing.T) {
for i := 0; i < cap(buffers1); i++ {
buffers1 = append(buffers1, memory.NewBufferBytes([]byte("15-bytes-buffer")))
}
data := NewData(&arrow.StringType{}, 10, buffers1, nil, 0, 0)
data := NewData(&arrow.StringType{}, 10, slices.Clone(buffers1), nil, 0, 0)
var arrayData arrow.ArrayData = data
dataWithChild := NewData(&arrow.StringType{}, 10, buffers1, []arrow.ArrayData{arrayData}, 0, 0)

Expand Down

0 comments on commit 464b1b9

Please sign in to comment.