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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7efb39556c Minor cleanup creating Schema (#8391)
7efb39556c is described below

commit 7efb39556c8b1b1c49603545bcff810343a1abb2
Author: Andrew Lamb <[email protected]>
AuthorDate: Sat Sep 20 05:51:55 2025 -0700

    Minor cleanup creating Schema (#8391)
    
    This is a random cleanup I encountered while working on
    https://github.com/apache/arrow-rs/pull/8365
---
 parquet/src/arrow/arrow_reader/mod.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/parquet/src/arrow/arrow_reader/mod.rs 
b/parquet/src/arrow/arrow_reader/mod.rs
index 81765a800e..fcb4b63fe7 100644
--- a/parquet/src/arrow/arrow_reader/mod.rs
+++ b/parquet/src/arrow/arrow_reader/mod.rs
@@ -2295,7 +2295,7 @@ mod tests {
         let batch = record_reader.next().unwrap().unwrap();
         assert_eq!(batch.num_rows(), 1);
 
-        let expected_schema = Schema::new(Fields::from(vec![Field::new(
+        let expected_schema = Schema::new(vec![Field::new(
             "my_map",
             ArrowDataType::Map(
                 Arc::new(Field::new(
@@ -2309,7 +2309,7 @@ mod tests {
                 false,
             ),
             true,
-        )]));
+        )]);
         assert_eq!(batch.schema().as_ref(), &expected_schema);
 
         assert_eq!(batch.num_rows(), 1);
@@ -3106,11 +3106,11 @@ mod tests {
 
         let reader = builder.with_projection(mask).build().unwrap();
 
-        let expected_schema = Schema::new(Fields::from(vec![Field::new(
+        let expected_schema = Schema::new(vec![Field::new(
             "group",
             ArrowDataType::Struct(vec![Field::new("leaf", 
ArrowDataType::Int32, false)].into()),
             true,
-        )]));
+        )]);
 
         let batch = reader.into_iter().next().unwrap().unwrap();
         assert_eq!(batch.schema().as_ref(), &expected_schema);

Reply via email to