You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/25 01:28:19 UTC

[GitHub] [arrow] mdepero commented on a diff in pull request #13221: ARROW-16638: [Go][Parquet] Fix boolean column skip

mdepero commented on code in PR #13221:
URL: https://github.com/apache/arrow/pull/13221#discussion_r881114277


##########
go/parquet/file/column_reader_types.gen.go:
##########
@@ -207,10 +207,11 @@ type BooleanColumnChunkReader struct {
 func (cr *BooleanColumnChunkReader) Skip(nvalues int64) (int64, error) {
 	return cr.columnChunkReader.skipValues(nvalues,
 		func(batch int64, buf []byte) (int64, error) {
+			// buf is large enough to hold values, but not to hold def and rep lvls; use nil for them
 			vals, _, err := cr.ReadBatch(batch,
 				*(*[]bool)(unsafe.Pointer(&buf)),
-				arrow.Int16Traits.CastFromBytes(buf),
-				arrow.Int16Traits.CastFromBytes(buf))
+				nil,
+				nil)

Review Comment:
   Done, thank you!



-- 
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-unsubscribe@arrow.apache.org

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