This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new a38f36365b [optimize](inverted index) use
InvertedIndexReaderType::FULLTEXT instead of InvertedIndexParserType to check
predicate whether handle by fulltext or not (#16191)
a38f36365b is described below
commit a38f36365bea1dc9907fa694c42e27d96e5800ae
Author: YueW <[email protected]>
AuthorDate: Sun Jan 29 20:45:51 2023 +0800
[optimize](inverted index) use InvertedIndexReaderType::FULLTEXT instead of
InvertedIndexParserType to check predicate whether handle by fulltext or not
(#16191)
---
be/src/olap/rowset/segment_v2/segment_iterator.cpp | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
index cdc6baf578..3ef6b26bd5 100644
--- a/be/src/olap/rowset/segment_v2/segment_iterator.cpp
+++ b/be/src/olap/rowset/segment_v2/segment_iterator.cpp
@@ -627,12 +627,9 @@ bool
SegmentIterator::_is_handle_predicate_by_fulltext(ColumnPredicate* predicat
auto column_id = predicate->column_id();
int32_t unique_id = _schema.unique_id(column_id);
bool handle_by_fulltext =
- (_inverted_index_iterators[unique_id] != nullptr) &&
- (is_string_type(_schema.column(column_id)->type())) &&
-
((_inverted_index_iterators[unique_id]->get_inverted_index_analyser_type() ==
- InvertedIndexParserType::PARSER_ENGLISH) ||
-
(_inverted_index_iterators[unique_id]->get_inverted_index_analyser_type() ==
- InvertedIndexParserType::PARSER_STANDARD));
+ _inverted_index_iterators[unique_id] != nullptr &&
+
_inverted_index_iterators[unique_id]->get_inverted_index_reader_type() ==
+ InvertedIndexReaderType::FULLTEXT;
return handle_by_fulltext;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]