-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Refactor](inverted index) refactor inverted index file writer for v1/v2 index write #42328
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
869b21f
to
3a622f0
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
3a622f0
to
83c58f1
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
run p1 |
run cloud_p1 |
83c58f1
to
2ec92d9
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
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
namespace doris { | ||
namespace segment_v2 { |
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.
warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace doris { | |
namespace segment_v2 { | |
namespace doris::segment_v2 { |
be/test/olap/rowset/segment_v2/inverted_index_file_writer_test.cpp:377:
- } // namespace segment_v2
- } // namespace doris
+ } // namespace doris
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.
line 148 and line 163 is duplicated.
a26c622
to
178ec5e
Compare
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
namespace doris { | ||
namespace segment_v2 { |
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.
warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace doris { | |
namespace segment_v2 { | |
namespace doris::segment_v2 { |
be/test/olap/rowset/segment_v2/inverted_index_file_writer_test.cpp:424:
- } // namespace segment_v2
- } // namespace doris
+ } // namespace doris
178ec5e
to
ef11c84
Compare
run buildall |
ef11c84
to
397fa45
Compare
run buildall |
397fa45
to
dc539c3
Compare
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
namespace doris { | ||
namespace segment_v2 { |
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.
warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace doris { | |
namespace segment_v2 { | |
namespace doris::segment_v2 { |
be/test/olap/rowset/segment_v2/inverted_index_file_writer_test.cpp:509:
- } // namespace segment_v2
- } // namespace doris
+ } // namespace doris
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 anyone and no changes requested. |
TeamCity be ut coverage result: |
8202c5a
to
ab8b8fe
Compare
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
namespace doris { | ||
namespace segment_v2 { |
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.
warning: nested namespaces can be concatenated [modernize-concat-nested-namespaces]
namespace doris { | |
namespace segment_v2 { | |
namespace doris::segment_v2 { |
be/test/olap/rowset/segment_v2/inverted_index_file_writer_test.cpp:513:
- } // namespace segment_v2
- } // namespace doris
+ } // namespace doris
TeamCity be ut coverage result: |
run buildall |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TeamCity be ut coverage result: |
run buildall |
TeamCity be ut coverage result: |
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. |
Proposed changes
The original write_v1 and write_v2 methods in the inverted index file writer were overly long and difficult to maintain. This PR refactors these methods to improve code maintainability and readability.