rdettai commented on a change in pull request #8525:
URL: https://github.com/apache/arrow/pull/8525#discussion_r513246472



##########
File path: rust/parquet/src/util/io.rs
##########
@@ -243,6 +251,19 @@ mod tests {
         assert_eq!(src.pos(), 4);
     }
 
+    #[test]
+    fn test_io_slice_over_limit() {

Review comment:
       When you slice a reader in a way that it exceeds the bounds of the 
original reader, the slice reader should be clamped to the original reader. 
This is what is tested here.
   ```
   Original:        ++++++++++++++++++++   
   Requested Slice: ----------------+++++++++++++
   Resulting Slice: ----------------++++
   ```




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to