[Chore](runtime-filter) adjust need_local_merge setting conditions (#33886)

This commit is contained in:
Pxl
2024-04-19 23:49:09 +08:00
committed by yiguolei
parent 5bddbcd933
commit 09b973db49
2 changed files with 11 additions and 22 deletions

View File

@ -531,9 +531,6 @@ Status RuntimeState::register_producer_runtime_filter(const doris::TRuntimeFilte
bool need_local_merge,
doris::IRuntimeFilter** producer_filter,
bool build_bf_exactly) {
// If runtime filter need to be local merged, `build_bf_exactly` will lead to bloom filters with
// different size need to be merged which is not allowed.
// So if `need_local_merge` is true, we will disable `build_bf_exactly`.
if (desc.has_remote_targets || need_local_merge) {
return global_runtime_filter_mgr()->register_local_merge_producer_filter(
desc, query_options(), producer_filter, build_bf_exactly);