candiduslynx commented on issue #41284:
URL: https://github.com/apache/arrow/issues/41284#issuecomment-2101118524

   > * There's a mistake somewhere in the code when constructing the arrays 
regarding handling what should or shouldn't be sliced and where
   
   ```go
   func (a *Struct) setData(data *Data) {
        a.array.setData(data)
        a.fields = make([]arrow.Array, len(data.childData))
        for i, child := range data.childData {
                if data.offset != 0 || child.Len() != data.length {
                        sub := NewSliceData(child, int64(data.offset), 
int64(data.offset+data.length))
                        a.fields[i] = MakeFromData(sub)
                        sub.Release()
                } else {
                        a.fields[i] = MakeFromData(child)
                }
        }
   }
   ```
   I think is the culprit
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to