You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/11/16 01:48:42 UTC

[GitHub] [doris] airborne12 commented on a diff in pull request #14211: [feature-wip](inverted index) API for inverted index reader and syntax for fulltext match

airborne12 commented on code in PR #14211:
URL: https://github.com/apache/doris/pull/14211#discussion_r1023421966


##########
be/src/olap/in_list_predicate.h:
##########
@@ -241,6 +242,29 @@ class InListPredicateBase : public ColumnPredicate {
         return Status::OK();
     }
 
+    Status evaluate(const Schema& schema, InvertedIndexIterator* iterator,
+                    uint32_t num_rows, roaring::Roaring* result) const override {
+        if (iterator == nullptr) {
+            return Status::OK();
+        }
+        auto column_desc = schema.column(_column_id);
+        std::string column_name = column_desc->name();
+        roaring::Roaring indices;
+        for (auto value : *_values) {

Review Comment:
   don't need to 'for each value then merge result', read_from_inverted_index can process multiple values query. In other words, we can push down IN_LIST query to inverted index query layer.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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