Skip to content

Commit

Permalink
feat: alter inverted index (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
lyang24 authored Jan 16, 2025
1 parent 43ddd8d commit 4a17378
Show file tree
Hide file tree
Showing 9 changed files with 17,830 additions and 12,093 deletions.
5,597 changes: 3,365 additions & 2,232 deletions c++/greptime/v1/ddl.pb.cc

Large diffs are not rendered by default.

5,144 changes: 3,148 additions & 1,996 deletions c++/greptime/v1/ddl.pb.h

Large diffs are not rendered by default.

259 changes: 129 additions & 130 deletions c++/greptime/v1/region/server.pb.cc

Large diffs are not rendered by default.

310 changes: 155 additions & 155 deletions c++/greptime/v1/region/server.pb.h

Large diffs are not rendered by default.

1,187 changes: 763 additions & 424 deletions go/greptime/v1/ddl.pb.go

Large diffs are not rendered by default.

16,669 changes: 9,881 additions & 6,788 deletions java/src/main/java/io/greptime/v1/Ddl.java

Large diffs are not rendered by default.

723 changes: 361 additions & 362 deletions java/src/main/java/io/greptime/v1/region/Server.java

Large diffs are not rendered by default.

30 changes: 26 additions & 4 deletions proto/greptime/v1/ddl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,23 @@ message AlterTableExpr {
RenameTable rename_table = 6;
ModifyColumnTypes modify_column_types = 7;
SetTableOptions set_table_options = 8;
SetColumnFulltext set_column_fulltext = 9;
UnsetColumnFulltext unset_column_fulltext = 10;
UnsetTableOptions unset_table_options = 11;
SetIndex set_index = 12;
UnsetIndex unset_index = 13;
}
}

message SetIndex {
oneof options {
SetFulltext fulltext = 1;
SetInverted inverted = 2;
}
}

message UnsetIndex {
oneof options {
UnsetFulltext fulltext = 1;
UnsetInverted inverted = 2;
}
}

Expand Down Expand Up @@ -215,14 +229,22 @@ enum Analyzer {
CHINESE = 1;
}

message SetColumnFulltext {
message SetFulltext {
string column_name = 1;
bool enable = 2;
Analyzer analyzer = 3;
bool case_sensitive = 4;
}

message UnsetColumnFulltext {
message UnsetFulltext {
string column_name = 1;
}

message SetInverted {
string column_name = 1;
}

message UnsetInverted {
string column_name = 1;
}

Expand Down
4 changes: 2 additions & 2 deletions proto/greptime/v1/region/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ message AlterRequest {
DropColumns drop_columns = 3;
ModifyColumnTypes modify_column_types = 5;
SetTableOptions set_table_options = 6;
SetColumnFulltext set_column_fulltext = 7;
UnsetColumnFulltext unset_column_fulltext = 8;
UnsetTableOptions unset_table_options = 9;
SetIndex set_index = 10;
UnsetIndex unset_index = 11;
}
// The version of the schema before applying the alteration.
uint64 schema_version = 4;
Expand Down

0 comments on commit 4a17378

Please sign in to comment.