Skip to content

Commit

Permalink
Revert "MINOR: [Go] Use arrow.ListLikeType (apache#35893)"
Browse files Browse the repository at this point in the history
This reverts commit 5a55fb4.
  • Loading branch information
dgreiss committed Jun 4, 2023
1 parent fc17eaf commit 5f59480
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/arrow/ipc/file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,12 @@ func (ctx *arrayLoaderContext) loadMap(dt *arrow.MapType) arrow.ArrayData {
return array.NewData(dt, int(field.Length()), buffers, []arrow.ArrayData{sub}, int(field.NullCount()), 0)
}

func (ctx *arrayLoaderContext) loadList(dt arrow.ListLikeType) arrow.ArrayData {
type listLike interface {
arrow.DataType
Elem() arrow.DataType
}

func (ctx *arrayLoaderContext) loadList(dt listLike) arrow.ArrayData {
field, buffers := ctx.loadCommon(dt.ID(), 2)
buffers = append(buffers, ctx.buffer())
defer releaseBuffers(buffers)
Expand Down

0 comments on commit 5f59480

Please sign in to comment.