From 9f56db2314a8cc74cd540f94481a3e7fccd32fa9 Mon Sep 17 00:00:00 2001 From: "chunshao.rcs" Date: Tue, 10 Oct 2023 16:37:38 +0800 Subject: [PATCH] feat: add alterTable in remote_engine (#102) Co-authored-by: xikai.wxk --- protos/engine/remote_engine.proto | 23 +++++++++++++++++++++++ rust/Cargo.toml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/protos/engine/remote_engine.proto b/protos/engine/remote_engine.proto index 2063abb..48013d4 100644 --- a/protos/engine/remote_engine.proto +++ b/protos/engine/remote_engine.proto @@ -15,6 +15,10 @@ service RemoteEngineService { rpc GetTableInfo(GetTableInfoRequest) returns (GetTableInfoResponse) {} rpc WriteBatch(WriteBatchRequest) returns (WriteResponse) {} rpc ExecutePhysicalPlan(ExecutePlanRequest) returns (stream ReadResponse) {} + rpc AlterTableSchema(AlterTableSchemaRequest) + returns (AlterTableSchemaResponse) {} + rpc AlterTableOptions(AlterTableOptionsRequest) + returns (AlterTableOptionsResponse) {} } message TableIdentifier { @@ -140,3 +144,22 @@ message ExecutePlanRequest { } TableIdentifier table = 3; } + +message AlterTableSchemaRequest { + TableIdentifier table = 1; + schema.TableSchema table_schema = 2; + uint32 pre_schema_version = 3; +} + +message AlterTableSchemaResponse { + common.ResponseHeader header = 1; +} + +message AlterTableOptionsRequest { + TableIdentifier table = 1; + map options = 2; +} + +message AlterTableOptionsResponse { + common.ResponseHeader header = 1; +} diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 79c6ae9..0b0044b 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ceresdbproto" -version = "1.0.16" +version = "1.0.17" authors = ["CeresDB Authors "] edition = "2021" repository = "https://github.com/CeresDB/ceresdbproto"