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:
Lei, HUANG
2024-10-29 19:10:00 -07:00
committed by GitHub
parent 86ed051dfd
commit 255f87a331
9 changed files with 3859 additions and 387 deletions
+10
View File
@@ -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; }
+1
View File
@@ -128,6 +128,7 @@ message AlterRequest {
AddColumns add_columns = 2;
DropColumns drop_columns = 3;
ChangeColumnTypes change_column_types = 5;
ChangeTableOptions change_table_options = 6;
}
// The version of the schema before applying the alteration.
uint64 schema_version = 4;