-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](index compaction)Optimize logic of picking columns for index compaction #42051
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
[opt](index compaction)Optimize logic of picking columns for index compaction #42051
Conversation
…mpaction 1. Rename `skip_inverted_index` to `columns_to_do_index_compaction` to make it more clear. 2. Remove redundant rowid_conversion check in index compaction 3. Rename function `construct_skip_inverted_index` to `construct_index_compaction_columns` 4. Check `index.col_unique_ids` empty before using to avoid crash and log tablet schema for debug. 5. Avoid unnecessary bkd and variant index checks by advancing column type checking before `has_inverted_index`。
|
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
|
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 41453 ms |
TPC-DS: Total hot run time: 192331 ms |
ClickBench: Total hot run time: 33.11 s |
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. |
csun5285
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
…mpaction (apache#42051) 1. Rename `skip_inverted_index` to `columns_to_do_index_compaction` to make it more clear. 2. Remove redundant rowid_conversion check in index compaction 3. Rename function `construct_skip_inverted_index` to `construct_index_compaction_columns` 4. Check `index.col_unique_ids` empty before using to avoid crash and log tablet schema for debug. 5. Avoid unnecessary bkd and variant index checks by advancing column type checking before `has_inverted_index`
Proposed changes
skip_inverted_indextocolumns_to_do_index_compactionto make it more clear.construct_skip_inverted_indextoconstruct_index_compaction_columnsindex.col_unique_idsempty before using to avoid crash and log tablet schema for debug.has_inverted_index