This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch 53.0.0_maintenance
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/53.0.0_maintenance by this 
push:
     new d3fcb4be84 [53.0.0_maintenance] Update `parquet-testing` pin, add 
tests for new invalid data (#6985)
d3fcb4be84 is described below

commit d3fcb4be84b631ffa7a14a530ee8c1d2479f5a75
Author: Andrew Lamb <[email protected]>
AuthorDate: Wed Jan 15 06:05:59 2025 -0500

    [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 550368ca77..f4d7ed772a 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 7434203143..04b64277bb 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<usize, ParquetError> {

Reply via email to