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/01/25 05:25:28 UTC
(doris) 13/37: [optimize](inverted index) Use inverted index filter null field (#30237)
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 72026778fe9bbec4961158c369f3584990c188e8
Author: zxealous <zh...@baidu.com>
AuthorDate: Wed Jan 24 17:46:30 2024 +0800
[optimize](inverted index) Use inverted index filter null field (#30237)
---
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 0cf8ffeffa1..e5725e6fe6e 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -852,6 +852,8 @@ bool SegmentIterator::_check_apply_by_inverted_index(ColumnPredicate* pred, bool
// can apply 'match qeury' and 'equal query' and 'list query' for fulltext index.
return (pred_in_compound ? pred->type() == PredicateType::MATCH
: (pred->type() == PredicateType::MATCH ||
+ pred->type() == PredicateType::IS_NULL ||
+ pred->type() == PredicateType::IS_NOT_NULL ||
PredicateTypeTraits::is_equal_or_list(pred->type())));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org