zeroshade commented on code in PR #1585:
URL: https://github.com/apache/arrow-go/pull/1585#discussion_r4591514963


##########
parquet/file/column_reader_types.gen.go.tmpl:
##########
@@ -30,9 +30,13 @@ type {{.Name}}ColumnChunkReader struct {
 
 // Skip skips the next nvalues so that the next call to ReadBatch
 // will start reading *after* the skipped values.
+//
+// It returns the number of rows skipped before it stopped, which is less than
+// nvalues when the column ends or an error occurs first. After an error on a
+// repeated column, the count can include a row that continues onto the page
+// that failed.

Review Comment:
   Could this describe the error case in general terms instead of only the 
repeated-column case? Something like:
   
   ```
   // nvalues when the column ends or an error occurs first. On error, the count
   // covers the rows skipped before the step that failed, and the reader stops
   // at that error. For a repeated column, that count can include a row that
   // continues onto the page that failed.
   ```
   
   The generated file needs regenerating to match.



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