Skip to content

Commit d3fcb4b

Browse files
authored
[53.0.0_maintenance] Update parquet-testing pin, add tests for new invalid data (apache#6985)
* Update parquet testing pin * Add a test for ARROW-GH-45185.parquet
1 parent e613bae commit d3fcb4b

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

parquet/tests/arrow_reader/bad_data.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ static KNOWN_FILES: &[&str] = &[
3030
"ARROW-GH-43605.parquet",
3131
"ARROW-RS-GH-6229-DICTHEADER.parquet",
3232
"ARROW-RS-GH-6229-LEVELS.parquet",
33+
"ARROW-GH-45185.parquet",
3334
"README.md",
3435
];
3536

@@ -120,6 +121,16 @@ fn test_arrow_rs_gh_6229_dict_levels() {
120121
);
121122
}
122123

124+
#[test]
125+
#[cfg(feature = "snap")]
126+
fn test_arrow_rs_gh_45185_dict_levels() {
127+
let err = read_file("ARROW-GH-45185.parquet").unwrap_err();
128+
assert_eq!(
129+
err.to_string(),
130+
"External: Parquet argument error: Parquet error: first repetition level of batch must be 0"
131+
);
132+
}
133+
123134
/// Reads the file and tries to return the total row count
124135
/// Returns an error if the file is invalid
125136
fn read_file(name: &str) -> Result<usize, ParquetError> {

0 commit comments

Comments
 (0)