Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #43542

…in inverted index (#43542)

Problem Summary:

1. Implement the accounting of remote I/O operations for the inverted
index in profiling statistics.

### Release note

Add performance profiling for remote IO access in inverted index
@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?

@doris-robot
Copy link

run buildall

@dataroaring dataroaring reopened this Nov 18, 2024
Copy link
Contributor Author

@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

Status FullTextIndexReader::query(OlapReaderStatistics* stats, RuntimeState* runtime_state,
const std::string& column_name, const void* query_value,
InvertedIndexQueryType query_type,
Status FullTextIndexReader::query(const io::IOContext* io_ctx, OlapReaderStatistics* stats,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'query' exceeds recommended size/complexity thresholds [readability-function-size]

Status FullTextIndexReader::query(const io::IOContext* io_ctx, OlapReaderStatistics* stats,
                            ^
Additional context

be/src/olap/rowset/segment_v2/inverted_index_reader.cpp:248: 92 lines including whitespace and comments (threshold 80)

Status FullTextIndexReader::query(const io::IOContext* io_ctx, OlapReaderStatistics* stats,
                            ^

}

Status StringTypeInvertedIndexReader::query(OlapReaderStatistics* stats,
Status StringTypeInvertedIndexReader::query(const io::IOContext* io_ctx,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'query' exceeds recommended size/complexity thresholds [readability-function-size]

Status StringTypeInvertedIndexReader::query(const io::IOContext* io_ctx,
                                      ^
Additional context

be/src/olap/rowset/segment_v2/inverted_index_reader.cpp:357: 117 lines including whitespace and comments (threshold 80)

Status StringTypeInvertedIndexReader::query(const io::IOContext* io_ctx,
                                      ^

@airborne12 airborne12 merged commit fdbd9ca into branch-3.0 Nov 18, 2024
@airborne12 airborne12 deleted the auto-pick-43542-branch-3.0 branch November 18, 2024 03:59
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.

5 participants