EmmyMiao87 commented on a change in pull request #7645: URL: https://github.com/apache/incubator-doris/pull/7645#discussion_r780133690
########## File path: be/src/exprs/runtime_filter.cpp ########## @@ -351,6 +359,26 @@ class RuntimePredicateWrapper { return Status::OK(); } + Status change_to_bloom_filter() { + if (_filter_type != RuntimeFilterType::IN_OR_BLOOM_FILTER) { + std::stringstream msg; + msg << "Can not change to bloom filter because of runtime filter type is " + << to_string(_filter_type); + return Status::InvalidArgument(msg.str()); + } + _is_bloomfilter = true; + if (_hybrid_set->size() > 0) { + auto it = _hybrid_set->begin(); + while (it->has_next()) { + _bloomfilter_func->insert(it->get_value()); + it->next(); + } + // release in filter + _hybrid_set.reset(create_set(_column_return_type)); + } + return Status::OK(); Review comment: Please update the runtime filter type in profile ~ -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org