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,