From 5a55fb4f66cbd316568085129054b5ff1d2eb089 Mon Sep 17 00:00:00 2001 From: Alex Shcherbakov Date: Fri, 2 Jun 2023 22:52:30 +0300 Subject: [PATCH] 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 Signed-off-by: Matt Topol --- go/arrow/ipc/file_reader.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/go/arrow/ipc/file_reader.go b/go/arrow/ipc/file_reader.go index 658d79d330684..a561352960a66 100644 --- a/go/arrow/ipc/file_reader.go +++ b/go/arrow/ipc/file_reader.go @@ -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)