feat: support multi table engines in distributed mode (#1316)

* chore: bump greptime-proto to 59afacd

* feat: support multi table engines in distributed mode
This commit is contained in:
Weny Xu
2023-04-04 11:27:08 +09:00
committed by GitHub
parent 451f9d2d4e
commit ef134479ef
13 changed files with 40 additions and 14 deletions

View File

@@ -159,6 +159,7 @@ mod test {
alter_expr, AddColumn, AddColumns, AlterExpr, Column, ColumnDataType, ColumnDef,
CreateDatabaseExpr, CreateTableExpr, QueryRequest,
};
use common_catalog::consts::MITO_ENGINE;
use common_recordbatch::RecordBatches;
use datatypes::prelude::*;
use query::parser::QueryLanguageParser;
@@ -213,6 +214,7 @@ mod test {
},
],
time_index: "ts".to_string(),
engine: MITO_ENGINE.to_string(),
..Default::default()
})),
});

View File

@@ -106,7 +106,7 @@ impl Instance {
#[cfg(test)]
mod tests {
use api::v1::{column_def, ColumnDataType, ColumnDef, TableId};
use common_catalog::consts::MIN_USER_TABLE_ID;
use common_catalog::consts::{MIN_USER_TABLE_ID, MITO_ENGINE};
use common_grpc_expr::create_table_schema;
use datatypes::prelude::ConcreteDataType;
use datatypes::schema::{ColumnDefaultConstraint, ColumnSchema, RawSchema};
@@ -237,6 +237,7 @@ mod tests {
id: MIN_USER_TABLE_ID,
}),
region_ids: vec![0],
engine: MITO_ENGINE.to_string(),
}
}