Skip to content

Commit

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



Change level of logs below to debug mode
```
will downgrade without index to evaluate predicate, because of res: [E-6004]hit count: 413, bkd inverted reached limit 50%, segment num rows:33
```
  • Loading branch information
airborne12 authored and Your Name committed Dec 23, 2024
1 parent a753837 commit 4829e6f
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 4829e6f

Please sign in to comment.