Skip to content

Conversation

@qidaye
Copy link
Contributor

@qidaye qidaye commented Nov 1, 2024

bp #43113

@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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@qidaye
Copy link
Contributor Author

qidaye commented Nov 1, 2024

run buildall

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

@qidaye
Copy link
Contributor Author

qidaye commented Nov 1, 2024

run buildall

Copy link
Member

@airborne12 airborne12 left a comment

Choose a reason for hiding this comment

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

lgtm

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2024

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Nov 2, 2024
@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2024

PR approved by anyone and no changes requested.

@qidaye
Copy link
Contributor Author

qidaye commented Nov 4, 2024

run buildall

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 +102 to +109
if (false) {
TermDocs* td = r->termDocs(te->term());
while (td->next()) {
printf("DocID: %d ", td->doc());
printf("TermFreq: %d\n", td->freq());
}
_CLLDELETE(td);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: redundant boolean literal in if statement condition [readability-simplify-boolean-expr]

Suggested change
if (false) {
TermDocs* td = r->termDocs(te->term());
while (td->next()) {
printf("DocID: %d ", td->doc());
printf("TermFreq: %d\n", td->freq());
}
_CLLDELETE(td);
}

r->close();
_CLLDELETE(r);
}
static Status check_idx_file_correctness(lucene::store::Directory* index_reader,
Copy link
Contributor

Choose a reason for hiding this comment

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

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

static Status check_idx_file_correctness(lucene::store::Directory* index_reader,
              ^
Additional context

be/test/olap/rowset/segment_v2/inverted_index/index_compaction_with_deleted_term.cpp:117: 97 lines including whitespace and comments (threshold 80)

static Status check_idx_file_correctness(lucene::store::Directory* index_reader,
              ^

return Status::OK();
}

static RowsetSharedPtr do_compaction(std::vector<RowsetSharedPtr> rowsets,
Copy link
Contributor

Choose a reason for hiding this comment

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

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

static RowsetSharedPtr do_compaction(std::vector<RowsetSharedPtr> rowsets,
                       ^
Additional context

be/test/olap/rowset/segment_v2/inverted_index/index_compaction_with_deleted_term.cpp:217: 245 lines including whitespace and comments (threshold 80)

static RowsetSharedPtr do_compaction(std::vector<RowsetSharedPtr> rowsets,
                       ^

@qidaye
Copy link
Contributor Author

qidaye commented Nov 4, 2024

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.29% (9458/26061)
Line Coverage: 27.84% (77863/279683)
Region Coverage: 26.52% (39970/150712)
Branch Coverage: 23.31% (20306/87116)
Coverage Report: http://coverage.selectdb-in.cc/coverage/53871e7d508d8043b32038a73e66f85af2478a8d_53871e7d508d8043b32038a73e66f85af2478a8d/report/index.html

@yiguolei yiguolei merged commit 72bb6e7 into apache:branch-2.1 Nov 4, 2024
@qidaye qidaye deleted the pick_43113_2.1 branch November 4, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants