HappenLee commented on code in PR #52517:
URL: https://github.com/apache/doris/pull/52517#discussion_r2176554967


##########
be/src/olap/like_column_predicate.h:
##########
@@ -159,6 +145,47 @@ class LikeColumnPredicate : public ColumnPredicate {
         }
     }
 
+    __attribute__((flatten)) std::vector<bool> 
_find_code_from_dictionary_column(
+            const vectorized::ColumnDictI32& column) const {
+        std::vector<bool> res;
+        if (_segment_id_to_cached_res_flags.if_contains(
+                    column.get_rowset_segment_id(),
+                    [&res](const auto& pair) { res = pair.second; })) {
+            return res;
+        }
+
+        std::vector<bool> tmp_res(column.dict_size(), false);

Review Comment:
   I had consider the performance  problem. but the res need to cache in 
memory, so here chose the vector<bool>



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to