joellubi commented on code in PR #43360:
URL: https://github.com/apache/arrow/pull/43360#discussion_r1687875357
##########
go/parquet/pqarrow/helpers.go:
##########
@@ -38,6 +38,8 @@ func releaseArrayData(data []arrow.ArrayData) {
func releaseColumns(columns []arrow.Column) {
for _, col := range columns {
- col.Release()
+ if col.Data() != nil { // data can be nil due to the way
columns are constructed in ReadRowGroups
Review Comment:
We do it in a few other places, but your reasoning here makes sense to me.
I'm happy leaving it as it is.
--
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]