From f626822a367b7a4e6f10098f044e771b22f6e89d Mon Sep 17 00:00:00 2001 From: Robert Pack Date: Fri, 24 May 2024 22:33:22 +0200 Subject: [PATCH] fix: convert tests --- crates/core/src/operations/convert_to_delta.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/core/src/operations/convert_to_delta.rs b/crates/core/src/operations/convert_to_delta.rs index 2f4c4e373b..a51d353b20 100644 --- a/crates/core/src/operations/convert_to_delta.rs +++ b/crates/core/src/operations/convert_to_delta.rs @@ -597,15 +597,15 @@ mod tests { "part-00000-d22c627d-9655-4153-9527-f8995620fa42-c000.snappy.parquet" ); - let Some(Scalar::Struct(min_values, _)) = action.min_values() else { + let Some(Scalar::Struct(data)) = action.min_values() else { panic!("Missing min values"); }; - assert_eq!(min_values, vec![Scalar::Date(18628), Scalar::Integer(1)]); + assert_eq!(data.values(), vec![Scalar::Date(18628), Scalar::Integer(1)]); - let Some(Scalar::Struct(max_values, _)) = action.max_values() else { + let Some(Scalar::Struct(data)) = action.max_values() else { panic!("Missing max values"); }; - assert_eq!(max_values, vec![Scalar::Date(18632), Scalar::Integer(5)]); + assert_eq!(data.values(), vec![Scalar::Date(18632), Scalar::Integer(5)]); assert_delta_table( table,