Skip to content
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 #43993

Merged

Conversation

airborne12
Copy link
Member

cherry pick from #42328

…/v2 index write (apache#42328)

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.
@airborne12
Copy link
Member Author

run buildall

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

Copy link
Contributor

@github-actions github-actions bot left a 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

Comment on lines +29 to +30
namespace doris {
namespace segment_v2 {
Copy link
Contributor

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]

Suggested change
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

@airborne12 airborne12 merged commit f2c3201 into apache:branch-3.0 Nov 15, 2024
22 of 24 checks passed
@airborne12 airborne12 deleted the pick_42328_to_origin_branch-3.0 branch November 15, 2024 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants