sfc-gh-pfus commented on issue #41284:
URL: https://github.com/apache/arrow/issues/41284#issuecomment-2067130331
That worked:
```
structArr, err :=
array.NewStructArray([]arrow.Array{keyCol, valueCol}, []string{"k", "v"})
if err != nil {
return nil, err
}
defer structArr.Release()
newData := array.NewData(arrow.MapOf(keyCol.DataType(),
valueCol.DataType()), mapCol.Len(), mapCol.Data().Buffers(),
[]arrow.ArrayData{structArr.Data()}, mapCol.NullN(), 0)
defer newData.Release()
return array.NewMapData(newData), nil
```
Thanks a lot! It would be nice to have some helper functions though :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]