Skip to content

Commit

Permalink
feat: add alterTable in remote_engine (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: xikai.wxk <[email protected]>
  • Loading branch information
chunshao90 and ShiKaiWi authored Oct 10, 2023
1 parent cd1b543 commit 9f56db2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions protos/engine/remote_engine.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<string, string> options = 2;
}

message AlterTableOptionsResponse {
common.ResponseHeader header = 1;
}
2 changes: 1 addition & 1 deletion rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ceresdbproto"
version = "1.0.16"
version = "1.0.17"
authors = ["CeresDB Authors <[email protected]>"]
edition = "2021"
repository = "https://github.com/CeresDB/ceresdbproto"
Expand Down

0 comments on commit 9f56db2

Please sign in to comment.