feat: add proto files for grpc-alter (#234)

* feat: add proto files for grpc-alter

* fix: format

Co-authored-by: liangxingjian <xingjianliang@proton.me>
This commit is contained in:
Morranto
2022-09-08 15:33:59 +08:00
committed by GitHub
parent 0ae99f7ac3
commit cc0c883ee2

View File

@@ -18,6 +18,7 @@ message AdminExpr {
ExprHeader header = 1;
oneof expr {
CreateExpr create = 2;
AlterExpr alter = 3;
}
}
@@ -39,3 +40,16 @@ message CreateExpr {
bool create_if_not_exists = 8;
map<string, string> table_options = 9;
}
message AlterExpr {
optional string catalog_name = 1;
optional string schema_name = 2;
string table_name = 3;
oneof kind {
AddColumn add_column = 4;
}
}
message AddColumn {
ColumnDef column_def = 1;
}