Ted-Jiang commented on code in PR #2158:
URL: https://github.com/apache/arrow-rs/pull/2158#discussion_r929489261


##########
parquet/src/column/reader.rs:
##########
@@ -312,13 +312,20 @@ where
 
                 // If page has less rows than the remaining records to
                 // be skipped, skip entire page
-                if metadata.num_rows < remaining {
+                while metadata.num_rows < remaining {

Review Comment:
   because first add below
   ```
   // because self.num_buffered_values == self.num_decoded_values means
   // we need reads a new page and set up the decoders for levels
     self.read_new_page()?;
   ```
   if we still use `if`, we may read needless page header



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