From d3fcb4be84b631ffa7a14a530ee8c1d2479f5a75 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Wed, 15 Jan 2025 06:05:59 -0500 Subject: [PATCH] [53.0.0_maintenance] Update `parquet-testing` pin, add tests for new invalid data (#6985) * Update parquet testing pin * Add a test for ARROW-GH-45185.parquet --- parquet-testing | 2 +- parquet/tests/arrow_reader/bad_data.rs | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/parquet-testing b/parquet-testing index 550368ca77b9..f4d7ed772a62 160000 --- a/parquet-testing +++ b/parquet-testing @@ -1 +1 @@ -Subproject commit 550368ca77b97231efead39251a96bd6f8f08c6e +Subproject commit f4d7ed772a62a95111db50fbcad2460833e8c882 diff --git a/parquet/tests/arrow_reader/bad_data.rs b/parquet/tests/arrow_reader/bad_data.rs index 74342031432a..04b64277bb35 100644 --- a/parquet/tests/arrow_reader/bad_data.rs +++ b/parquet/tests/arrow_reader/bad_data.rs @@ -30,6 +30,7 @@ static KNOWN_FILES: &[&str] = &[ "ARROW-GH-43605.parquet", "ARROW-RS-GH-6229-DICTHEADER.parquet", "ARROW-RS-GH-6229-LEVELS.parquet", + "ARROW-GH-45185.parquet", "README.md", ]; @@ -120,6 +121,16 @@ fn test_arrow_rs_gh_6229_dict_levels() { ); } +#[test] +#[cfg(feature = "snap")] +fn test_arrow_rs_gh_45185_dict_levels() { + let err = read_file("ARROW-GH-45185.parquet").unwrap_err(); + assert_eq!( + err.to_string(), + "External: Parquet argument error: Parquet error: first repetition level of batch must be 0" + ); +} + /// 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 {