Skip to content

Commit

Permalink
get list_view's offset buffer size right
Browse files Browse the repository at this point in the history
  • Loading branch information
bkietz committed Dec 14, 2023
1 parent 6d3c69b commit 952001f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/arrow/cdata/cdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,14 +762,14 @@ func (imp *cimporter) importListViewLike() (err error) {
defer nulls.Release()
}

if offsets, err = imp.importOffsetsBuffer(1, offsetSize); err != nil {
if offsets, err = imp.importFixedSizeBuffer(1, offsetSize); err != nil {
return
}
if offsets != nil {
defer offsets.Release()
}

if sizes, err = imp.importOffsetsBuffer(2, offsetSize); err != nil {
if sizes, err = imp.importFixedSizeBuffer(2, offsetSize); err != nil {
return
}
if sizes != nil {
Expand Down

0 comments on commit 952001f

Please sign in to comment.