feat: alter inverted index (#204)

This commit is contained in:
Lanqing Yang
2025-01-15 23:42:12 -08:00
committed by GitHub
parent 43ddd8dea6
commit 4a173785b3
9 changed files with 8342 additions and 2605 deletions
+26 -4
View File
@@ -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;
}
}
@@ -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;
}