sunchao commented on a change in pull request #33695:
URL: https://github.com/apache/spark/pull/33695#discussion_r688858338
##########
File path:
sql/core/src/main/java/org/apache/spark/sql/execution/datasources/parquet/ParquetReadState.java
##########
@@ -131,9 +157,10 @@ long currentRangeEnd() {
* Advance the current offset and rowId to the new values.
*/
void advanceOffsetAndRowId(int newOffset, long newRowId) {
- valuesToReadInBatch -= (newOffset - offset);
+ rowsToReadInBatch -= (newOffset - levelOffset);
Review comment:
Yes, again this is not called when reading repeated values. I probably
should remove this method and directly operate on these fields in
`readBatchInternal`.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]