Skip to content

Commit e5e66fa

Browse files
authored
Add test for parquet-testing/bad_data/ARROW-GH-47662.parquet (#10077)
# Which issue does this PR close? - Issue raised in #9110 # Rationale for this change Add a "bad_data" test for newly added file in parquet-testing # What changes are included in this PR? Adds a new test so the `bad_data` unit test doesn't fail. # Are these changes tested? Yes # Are there any user-facing changes? No, only tests
1 parent 9f96a8f commit e5e66fa

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

parquet/tests/arrow_reader/bad_data.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ static KNOWN_FILES: &[&str] = &[
3333
"ARROW-RS-GH-6229-DICTHEADER.parquet",
3434
"ARROW-RS-GH-6229-LEVELS.parquet",
3535
"ARROW-GH-45185.parquet",
36+
"ARROW-GH-47662.parquet",
3637
"README.md",
3738
];
3839

@@ -132,6 +133,15 @@ fn test_arrow_rs_gh_45185_dict_levels() {
132133
);
133134
}
134135

136+
#[test]
137+
fn test_arrow_gh_47662() {
138+
let err = read_file("ARROW-GH-47662.parquet").unwrap_err();
139+
assert_eq!(
140+
err.to_string(),
141+
"External: Parquet argument error: Parquet error: insufficient values read from column - expected: 100, got: 91"
142+
);
143+
}
144+
135145
/// Reads the file and tries to return the total row count
136146
/// Returns an error if the file is invalid
137147
fn read_file(name: &str) -> Result<usize, ParquetError> {

0 commit comments

Comments
 (0)