-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat](Ann Index)Support create index and build index for ANN #55586
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
Changes from all commits
930c944
c32b5ff
98fea6f
2aac5a8
e4717fe
8946c29
bf63e18
8c13bcb
5927b67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1544,7 +1544,8 @@ void TabletSchema::update_tablet_columns(const TabletSchema& tablet_schema, | |
|
|
||
| bool TabletSchema::has_inverted_index_with_index_id(int64_t index_id) const { | ||
| for (size_t i = 0; i < _indexes.size(); i++) { | ||
| if (_indexes[i]->index_type() == IndexType::INVERTED && | ||
| if ((_indexes[i]->index_type() == IndexType::INVERTED || | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. function name
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, in order to make as few changes as possible (also for the convenience of review), no modifications have been made. Not only BE, but FE also have the same problem. |
||
| _indexes[i]->index_type() == IndexType::ANN) && | ||
| _indexes[i]->index_id() == index_id) { | ||
| return true; | ||
| } | ||
|
|
@@ -1645,7 +1646,6 @@ const TabletIndex* TabletSchema::ann_index(int32_t col_unique_id, | |
| } | ||
|
|
||
| const TabletIndex* TabletSchema::ann_index(const TabletColumn& col) const { | ||
| // Some columns(Float, Double, JSONB ...) from the variant do not support inverted index | ||
| if (!segment_v2::IndexColumnWriter::check_support_ann_index(col)) { | ||
| return nullptr; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[[nodiscard]]is not necessary. since classStatushas already been marked as[[nodiscard]]. You can make another pr to remove all useless[[nodiscard]]for Status.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, get it