Skip to content

Commit

Permalink
MINOR: [Go] Use arrow.ListLikeType (apache#35893)
Browse files Browse the repository at this point in the history
### Rationale for this change

Follow-up for apache#35885

### What changes are included in this PR?

Removed `listLikeType` interface from `ipc.go` & swapped it for `arrow.ListLikeType`.

### Are these changes tested?

It's only a replace of the interface name.

### Are there any user-facing changes?

No.

Authored-by: candiduslynx <[email protected]>
Signed-off-by: Matt Topol <[email protected]>
  • Loading branch information
candiduslynx authored Jun 2, 2023
1 parent fb0c72c commit 5a55fb4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions go/arrow/ipc/file_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -595,12 +595,7 @@ func (ctx *arrayLoaderContext) loadMap(dt *arrow.MapType) arrow.ArrayData {
return array.NewData(dt, int(field.Length()), buffers, []arrow.ArrayData{sub}, int(field.NullCount()), 0)
}

type listLike interface {
arrow.DataType
Elem() arrow.DataType
}

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

0 comments on commit 5a55fb4

Please sign in to comment.