Skip to content

Commit 5a55fb4

Browse files
authored
MINOR: [Go] Use arrow.ListLikeType (#35893)
### Rationale for this change Follow-up for #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 <candiduslynx@gmail.com> Signed-off-by: Matt Topol <zotthewizard@gmail.com>
1 parent fb0c72c commit 5a55fb4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

go/arrow/ipc/file_reader.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -595,12 +595,7 @@ func (ctx *arrayLoaderContext) loadMap(dt *arrow.MapType) arrow.ArrayData {
595595
return array.NewData(dt, int(field.Length()), buffers, []arrow.ArrayData{sub}, int(field.NullCount()), 0)
596596
}
597597

598-
type listLike interface {
599-
arrow.DataType
600-
Elem() arrow.DataType
601-
}
602-
603-
func (ctx *arrayLoaderContext) loadList(dt listLike) arrow.ArrayData {
598+
func (ctx *arrayLoaderContext) loadList(dt arrow.ListLikeType) arrow.ArrayData {
604599
field, buffers := ctx.loadCommon(dt.ID(), 2)
605600
buffers = append(buffers, ctx.buffer())
606601
defer releaseBuffers(buffers)

0 commit comments

Comments
 (0)