HappenLee commented on code in PR #19789: URL: https://github.com/apache/doris/pull/19789#discussion_r1198505795
########## be/src/vec/exec/scan/new_olap_scan_node.cpp: ########## @@ -642,4 +642,32 @@ bool NewOlapScanNode::_is_key_column(const std::string& key_name) { return res != _olap_scan_node.key_column_name.end(); } +void NewOlapScanNode::updata_filter(int id, const std::array<int64_t, 3>& update_info) { + static std::vector<std::string> PredicateTypeName(20, "Unkonw"); + PredicateTypeName[static_cast<int>(PredicateType::BF)] = "BloomFilter"; + PredicateTypeName[static_cast<int>(PredicateType::BITMAP_FILTER)] = "BitmapFilter"; + // get defult + if (_bloom_filter_info.find(id) == _bloom_filter_info.end()) { + _bloom_filter_info[id] = {0, 0, 0}; + } + + // update + _bloom_filter_info[id][0] += update_info[0]; + _bloom_filter_info[id][1] += update_info[1]; + _bloom_filter_info[id][2] = update_info[2]; + + // to string + auto& info = _bloom_filter_info[id]; + std::string bloom_filter_name = "_RuntimeFilterInfo id : "; Review Comment: do not use "_" -- 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