-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Refactor](inverted index) refactor inverted index interface in tablet schema #43003
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
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.
clang-tidy made some suggestions
TPC-H: Total hot run time: 41471 ms |
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 191990 ms |
ClickBench: Total hot run time: 33.06 s |
|
run buildall |
18df067 to
79b8c37
Compare
|
run buildall |
1 similar comment
|
run buildall |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41336 ms |
TPC-DS: Total hot run time: 195526 ms |
ClickBench: Total hot run time: 31.8 s |
70bca58 to
b6e22ec
Compare
|
run buildall |
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41409 ms |
TPC-DS: Total hot run time: 195949 ms |
ClickBench: Total hot run time: 33.16 s |
|
run buildall |
|
run buildall |
TPC-H: Total hot run time: 41395 ms |
TPC-DS: Total hot run time: 191115 ms |
ClickBench: Total hot run time: 33.07 s |
|
TeamCity be ut coverage result: |
|
run p1 |
|
run cloud_p1 |
airborne12
left a comment
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.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
eldenmoon
left a comment
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.
LGTM
…t schema (apache#43003) ## Proposed changes refactor inverted index interface in tablet schema 1. There's a large amount of similar code ``` for (const auto& index : schema_ptr->indexes()) { if (index.index_type() == IndexType::INVERTED) { .... } } ``` Now it has been changed to ``` for (const auto& index : schema_ptr->inverted_indexes()) { .... } ``` 2. Remove functions with redundant functionality, such as `get_indexes_for_column `, `get_inverted_index_with_index_id` .... 3. Retrieve the index meta for the inverted index. Currently, there are two types: one is `inverted_index(TabletColumn)`, which checks the column type (e.g., if the column type is float, it does not support indexing and will be filtered out); the other is `inverted_index(unique_id, index_suffix)`, which retrieves the index meta for the current column without checking the column type. <!--Describe your changes.-->
Proposed changes
refactor inverted index interface in tablet schema
Now it has been changed to
Remove functions with redundant functionality, such as
get_indexes_for_column,get_inverted_index_with_index_id....Retrieve the index meta for the inverted index. Currently, there are two types: one is
inverted_index(TabletColumn), which checks the column type (e.g., if the column type is float, it does not support indexing and will be filtered out); the other isinverted_index(unique_id, index_suffix), which retrieves the index meta for the current column without checking the column type.