zeroshade commented on code in PR #34631:
URL: https://github.com/apache/arrow/pull/34631#discussion_r1157658134


##########
go/parquet/pqarrow/column_readers.go:
##########
@@ -546,6 +551,14 @@ func transferBinary(rdr file.RecordReader, dt 
arrow.DataType) *arrow.Chunked {
                        defer chunks[idx].Data().Release()
                        defer chunks[idx].Release()

Review Comment:
   this seems wrong... it should probably be:
   
   ```go
   prev := chunks[idx]
   chunks[idx] = array.MakeFromData(chunks[idx].Data())
   prev.Release()
   defer chunks[idx].Release()
   ```



-- 
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]

Reply via email to