Skip to content

Commit

Permalink
feat: alter inverted index
Browse files Browse the repository at this point in the history
  • Loading branch information
lyang24 committed Dec 7, 2024
1 parent a875e97 commit c86467f
Show file tree
Hide file tree
Showing 9 changed files with 17,818 additions and 12,079 deletions.
5,559 changes: 3,346 additions & 2,213 deletions c++/greptime/v1/ddl.pb.cc

Large diffs are not rendered by default.

5,166 changes: 3,159 additions & 2,007 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,177 changes: 759 additions & 418 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 unset_fulltext = 1;
UnsetInverted unset_inverted = 2;
}
}

Expand Down Expand Up @@ -212,14 +226,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 c86467f

Please sign in to comment.