feat: distribute mode support auto create table (#489)

This commit is contained in:
Lei, Huang
2022-11-14 19:53:35 +08:00
committed by GitHub
parent d10e45f4aa
commit c90832ea6c
7 changed files with 350 additions and 256 deletions

View File

@@ -242,7 +242,7 @@ pub fn column_def_to_schema(column_def: &ColumnDef, is_time_index: bool) -> Resu
}
/// Convert `ColumnDef` in sqlparser to `ColumnDef` in gRPC proto.
fn sql_column_def_to_grpc_column_def(col: ColumnDef) -> Result<api::v1::ColumnDef> {
pub fn sql_column_def_to_grpc_column_def(col: ColumnDef) -> Result<api::v1::ColumnDef> {
let name = col.name.value.clone();
let data_type = sql_data_type_to_concrete_data_type(&col.data_type)?;
let nullable = col