This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch 58_maintenance
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git
The following commit(s) were added to refs/heads/58_maintenance by this push:
new 95d7231227 [58_maintenance] Add test for
`parquet-testing/bad_data/ARROW-GH-47662.parquet` (#10077) (#10371)
95d7231227 is described below
commit 95d7231227e1ce7a1ec049ab2d45a6cffd7a50f9
Author: Andrew Lamb <[email protected]>
AuthorDate: Sat Jul 18 09:35:57 2026 -0400
[58_maintenance] Add test for
`parquet-testing/bad_data/ARROW-GH-47662.parquet` (#10077) (#10371)
- related to #9110
- backport of https://github.com/apache/arrow-rs/pull/10077 from
@etseidl to 58 branch
Co-authored-by: Ed Seidl <[email protected]>
---
parquet-testing | 2 +-
parquet/tests/arrow_reader/bad_data.rs | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/parquet-testing b/parquet-testing
index 5a6cf84678..ffdcbb5e22 160000
--- a/parquet-testing
+++ b/parquet-testing
@@ -1 +1 @@
-Subproject commit 5a6cf84678df3af65c231109b78b86ba9bf495df
+Subproject commit ffdcbb5e22828186c7461e56dbd26a0fe3caee56
diff --git a/parquet/tests/arrow_reader/bad_data.rs
b/parquet/tests/arrow_reader/bad_data.rs
index d9b0d89e2c..a00fd8b608 100644
--- a/parquet/tests/arrow_reader/bad_data.rs
+++ b/parquet/tests/arrow_reader/bad_data.rs
@@ -32,6 +32,7 @@ static KNOWN_FILES: &[&str] = &[
"ARROW-RS-GH-6229-DICTHEADER.parquet",
"ARROW-RS-GH-6229-LEVELS.parquet",
"ARROW-GH-45185.parquet",
+ "ARROW-GH-47662.parquet",
"README.md",
];
@@ -131,6 +132,15 @@ fn test_arrow_rs_gh_45185_dict_levels() {
);
}
+#[test]
+fn test_arrow_gh_47662() {
+ let err = read_file("ARROW-GH-47662.parquet").unwrap_err();
+ assert_eq!(
+ err.to_string(),
+ "External: Parquet argument error: Parquet error: insufficient values
read from column - expected: 100, got: 91"
+ );
+}
+
/// Reads the file and tries to return the total row count
/// Returns an error if the file is invalid
fn read_file(name: &str) -> Result<usize, ParquetError> {