You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by kx...@apache.org on 2024/02/19 13:18:57 UTC

(doris) branch branch-2.0 updated: [Pick 2.0](inverted index) fix inverted index read data opt not work on MOW #31075 (#31076)

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 1485f37a71b [Pick 2.0](inverted index) fix inverted index read data opt not work on MOW #31075 (#31076)
1485f37a71b is described below

commit 1485f37a71be5464210cc92f9a72b11d91fc0502
Author: airborne12 <ai...@gmail.com>
AuthorDate: Mon Feb 19 21:18:50 2024 +0800

    [Pick 2.0](inverted index) fix inverted index read data opt not work on MOW #31075 (#31076)
---
 be/src/olap/rowset/segment_v2/segment_iterator.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index 24c452f383a..743ffb4d94b 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -1042,8 +1042,8 @@ Status SegmentIterator::_apply_inverted_index_on_block_column_predicate(
 }
 
 bool SegmentIterator::_need_read_data(ColumnId cid) {
-    // for safety reason, only support DUP_KEYS
-    if (_opts.tablet_schema->keys_type() != KeysType::DUP_KEYS) {
+    // if there is delete predicate, we always need to read data
+    if (_opts.delete_condition_predicates->num_of_column_predicate() > 0) {
         return true;
     }
     if (_output_columns.count(-1)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org