The code above works as expected if InnerStruct is not a pointer in the slice element.
type SliceElement struct {
Inner InnerStruct
}
Any suggestions on how to fix this? I can't remove the pointers since I'm using generated protobuf messages which always use pointers. The pointers don't appear to be a problem in other places, only if used in a struct that's part of a slice from what I can tell. Any help with this is appreciated.
I'm trying to read records into a struct that contains a slice of elements with nested struct-pointers and seeing the following panic:
Below a test I wrote to reproduce the issue. It writes a single record to a parquet file, then tries to read it.
The code above works as expected if
InnerStruct
is not a pointer in the slice element.Any suggestions on how to fix this? I can't remove the pointers since I'm using generated protobuf messages which always use pointers. The pointers don't appear to be a problem in other places, only if used in a struct that's part of a slice from what I can tell. Any help with this is appreciated.