diff --git a/src/mito2/src/engine/compaction_test.rs b/src/mito2/src/engine/compaction_test.rs index 69687fcea00a..fadffe50e528 100644 --- a/src/mito2/src/engine/compaction_test.rs +++ b/src/mito2/src/engine/compaction_test.rs @@ -439,7 +439,7 @@ async fn test_compaction_update_time_window() { // Puts window 7200. let rows = Rows { - schema: column_schemas.to_vec(), + schema: column_schemas.clone(), rows: build_rows_for_key("a", 3600, 4000, 0), }; put_rows(&engine, region_id, rows).await; @@ -451,7 +451,7 @@ async fn test_compaction_update_time_window() { // Puts window 3600. let rows = Rows { - schema: column_schemas.to_vec(), + schema: column_schemas.clone(), rows: build_rows_for_key("a", 2400, 3600, 0), }; put_rows(&engine, region_id, rows).await; diff --git a/src/mito2/src/memtable/time_partition.rs b/src/mito2/src/memtable/time_partition.rs index 357507fa0852..052fdca9bcf8 100644 --- a/src/mito2/src/memtable/time_partition.rs +++ b/src/mito2/src/memtable/time_partition.rs @@ -541,7 +541,7 @@ mod tests { assert_eq!(0, partitions.num_partitions()); let kvs = memtable_util::build_key_values( - &metadata, + metadata, "hello".to_string(), 0, &[2000, 0], @@ -553,7 +553,7 @@ mod tests { assert!(!partitions.is_empty()); let kvs = memtable_util::build_key_values( - &metadata, + metadata, "hello".to_string(), 0, &[3000, 7000, 4000, 5000],