alamb commented on code in PR #11136:
URL: https://github.com/apache/arrow-rs/pull/11136#discussion_r4544833319


##########
parquet/tests/arrow_reader/bad_data.rs:
##########
@@ -136,6 +136,19 @@ fn test_arrow_gh_47662() {
     );
 }
 
+#[test]
+fn test_arrow_rs_gh_11136_byte_stream_split_truncated_page() {
+    // Checked-in malformed page: declared value count exceeds 
BYTE_STREAM_SPLIT payload.
+    let file = 
Bytes::from_static(include_bytes!("ARROW-RS-GH-11136-bss-truncated.parquet"));
+    let reader = ArrowReaderBuilder::try_new(file).unwrap().build().unwrap();
+    let err = reader.collect::<Result<Vec<_>, _>>().unwrap_err();
+    assert!(
+        err.to_string()
+            .contains("insufficient values read from column"),

Review Comment:
   please rephrase this in your own word



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