feat: add expr for altering table attributes (#192)
* feat: add expr for altering table attributes * feat/add-modify-table-attr-expr: Added ChangeTableAttributes to AlterRequest in server.proto - Introduced ChangeTableAttributes message handling in AlterRequest. - Updated server.pb.cc and server.pb.h to include logic for new ChangeTableAttributes. - Altered Java Server class to support ChangeTableAttributes. - Incremented descriptor sizes and adjusted field offsets in server.pb.cc. * chore: rename * update: allow multiple options
This commit is contained in:
@@ -109,6 +109,7 @@ message AlterExpr {
|
||||
DropColumns drop_columns = 5;
|
||||
RenameTable rename_table = 6;
|
||||
ChangeColumnTypes change_column_types = 7;
|
||||
ChangeTableOptions change_table_options = 8;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,6 +160,15 @@ message ChangeColumnType {
|
||||
ColumnDataTypeExtension target_type_extension = 3;
|
||||
}
|
||||
|
||||
message ChangeTableOptions {
|
||||
repeated ChangeTableOption change_table_options = 1;
|
||||
}
|
||||
|
||||
message ChangeTableOption {
|
||||
string key = 1;
|
||||
string value = 2;
|
||||
}
|
||||
|
||||
message DropColumn { string name = 1; }
|
||||
|
||||
message TableId { uint32 id = 1; }
|
||||
|
||||
Reference in New Issue
Block a user