Skip to content

Commit

Permalink
branch-3.0: [chore](inverted index) do not print downgrade reason for…
Browse files Browse the repository at this point in the history
… inverted index try query #45789 (#45814)

Cherry-picked from #45789

Co-authored-by: airborne12 <[email protected]>
  • Loading branch information
github-actions[bot] and airborne12 authored Dec 25, 2024
1 parent 5b543dd commit 738a002
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion be/src/olap/rowset/segment_v2/segment_iterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,13 @@ bool SegmentIterator::_downgrade_without_index(Status res, bool need_remaining)
// such as when index segment files are not generated
// above case can downgrade without index query
_opts.stats->inverted_index_downgrade_count++;
LOG(INFO) << "will downgrade without index to evaluate predicate, because of res: " << res;
if (!res.is<ErrorCode::INVERTED_INDEX_BYPASS>()) {
LOG(INFO) << "will downgrade without index to evaluate predicate, because of res: "
<< res;
} else {
VLOG_DEBUG << "will downgrade without index to evaluate predicate, because of res: "
<< res;
}
return true;
}
return false;
Expand Down

0 comments on commit 738a002

Please sign in to comment.