candiduslynx commented on issue #41284:
URL: https://github.com/apache/arrow/issues/41284#issuecomment-2096730780
> ```go
> newListData := array.NewData(listArr.DataType(), listArr.Len(),
listArr.Data().Buffers(), []arrow.ArrayData{newValues.Data()}, listArr.NullN(),
/* offset=*/0)
> defer newListData.Release()
>
> newListArr := array.NewListData(newListData)
> ```
@zeroshade I think there's one vital thing to actually address here: offset
should also be used (as the passed in record/array may be sliced), but not for
struct arrays (they are special & I don't know why).
I actually implemented the bulk of the conversion in our filetypes package:
https://github.com/cloudquery/filetypes/blob/7fe7b10f029d7a853bf118eed6cf156eff375807/parquet/read.go#L77-L102
--
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]