Skip to content

Commit bea1aa6

Browse files
committed
test: add tests for 4 types index build
Signed-off-by: SNC123 <[email protected]>
1 parent af87e95 commit bea1aa6

File tree

16 files changed

+784
-64
lines changed

16 files changed

+784
-64
lines changed

src/mito2/src/engine.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ mod staging_test;
6262
mod sync_test;
6363
#[cfg(test)]
6464
mod truncate_test;
65+
#[cfg(test)]
66+
mod index_build_test;
6567

6668
use std::any::Any;
6769
use std::collections::HashMap;

src/mito2/src/engine/compaction_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ use crate::test_util::{
3737
CreateRequestBuilder, TestEnv, build_rows_for_key, column_metadata_to_column_schema, put_rows,
3838
};
3939

40-
async fn put_and_flush(
40+
pub(crate) async fn put_and_flush(
4141
engine: &MitoEngine,
4242
region_id: RegionId,
4343
column_schemas: &[ColumnSchema],
@@ -74,7 +74,7 @@ async fn flush(engine: &MitoEngine, region_id: RegionId) {
7474
assert_eq!(0, result.affected_rows);
7575
}
7676

77-
async fn compact(engine: &MitoEngine, region_id: RegionId) {
77+
pub(crate) async fn compact(engine: &MitoEngine, region_id: RegionId) {
7878
let result = engine
7979
.handle_request(
8080
region_id,
@@ -85,7 +85,7 @@ async fn compact(engine: &MitoEngine, region_id: RegionId) {
8585
assert_eq!(result.affected_rows, 0);
8686
}
8787

88-
async fn delete_and_flush(
88+
pub(crate) async fn delete_and_flush(
8989
engine: &MitoEngine,
9090
region_id: RegionId,
9191
column_schemas: &[ColumnSchema],

0 commit comments

Comments
 (0)