This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 5120b36335d [fix](invert index) fix the inaccurate
rows_inverted_index_filtered in the profile #31158 (#31187)
5120b36335d is described below
commit 5120b36335df7a8a9b8548e705e9cd37672c3228
Author: zzzxl <[email protected]>
AuthorDate: Wed Feb 21 14:46:39 2024 +0800
[fix](invert index) fix the inaccurate rows_inverted_index_filtered in the
profile #31158 (#31187)
---
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 b30209e1eb3..d0402d632bb 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -453,6 +453,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();
@@ -476,6 +477,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: [email protected]
For additional commands, e-mail: [email protected]