Skip to content

Commit

Permalink
fix: convert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed Jun 4, 2024
1 parent 14e5053 commit f626822
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/core/src/operations/convert_to_delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f626822

Please sign in to comment.