Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: alter inverted index #204

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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