Skip to content

Commit

Permalink
test: trigger compaction
Browse files Browse the repository at this point in the history
  • Loading branch information
evenyag committed Mar 21, 2024
1 parent 0250c90 commit 051e8ea
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/mito2/src/engine/append_mode_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ async fn test_append_mode_compaction() {

let region_id = RegionId::new(1, 1);
let request = CreateRequestBuilder::new()
.insert_option("compaction.type", "twcs")
.insert_option("compaction.twcs.max_active_window_files", "2")
.insert_option("compaction.twcs.max_inactive_window_files", "2")
.insert_option("append_mode", "true")
.build();

Expand Down Expand Up @@ -129,8 +132,9 @@ async fn test_append_mode_compaction() {
};
put_rows(&engine, region_id, rows).await;

let request = ScanRequest::default();
let stream = engine.handle_query(region_id, request).await.unwrap();
let scanner = engine.scanner(region_id, ScanRequest::default()).unwrap();
assert_eq!(1, scanner.num_files());
let stream = scanner.scan().await.unwrap();
let batches = RecordBatches::try_collect(stream).await.unwrap();
let expected = "\
+-------+---------+---------------------+
Expand Down

0 comments on commit 051e8ea

Please sign in to comment.