sahuagin commented on code in PR #9787:
URL: https://github.com/apache/arrow-rs/pull/9787#discussion_r3124932976


##########
parquet/src/encodings/decoding.rs:
##########
@@ -847,6 +847,30 @@ where
             self.values_left -= 1;
         }
 
+        // Terminal skip: caller is discarding all remaining values on this 
page.
+        // last_value will never be read again, so we can use O(1) arithmetic
+        // skips (BitReader::skip) instead of decoding through get_batch.
+        let terminal = to_skip >= self.values_left + skip;

Review Comment:
   I can take a look a bit later this evening.



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