You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2024/02/21 06:03:32 UTC
(doris) 17/19: [fix](invert index) fix the inaccurate rows_inverted_index_filtered in the profile (#31158)
This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
commit f121ee907f6c93b266f3298e32d8e4878c3e00fa
Author: zzzxl <33...@users.noreply.github.com>
AuthorDate: Wed Feb 21 10:42:38 2024 +0800
[fix](invert index) fix the inaccurate rows_inverted_index_filtered in the profile (#31158)
---
be/src/olap/rowset/segment_v2/segment_iterator.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index 3eab4c0dca1..98e1fe0d82e 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -490,6 +490,7 @@ Status SegmentIterator::_get_row_ranges_by_column_conditions() {
}
if (config::enable_index_apply_preds_except_leafnode_of_andnode) {
+ size_t input_rows = _row_bitmap.cardinality();
RETURN_IF_ERROR(_apply_index_except_leafnode_of_andnode());
if (_can_filter_by_preds_except_leafnode_of_andnode()) {
for (auto it = _remaining_conjunct_roots.begin();
@@ -509,6 +510,7 @@ Status SegmentIterator::_get_row_ranges_by_column_conditions() {
}
}
}
+ _opts.stats->rows_inverted_index_filtered += (input_rows - _row_bitmap.cardinality());
}
RETURN_IF_ERROR(_apply_bitmap_index());
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org