HappenLee commented on code in PR #44618: URL: https://github.com/apache/doris/pull/44618#discussion_r1865719549
########## be/src/pipeline/exec/nested_loop_join_build_operator.cpp: ########## @@ -69,18 +67,38 @@ Status NestedLoopJoinBuildSinkLocalState::init(RuntimeState* state, LocalSinkSta RETURN_IF_ERROR(state->register_producer_runtime_filter(p._runtime_filter_descs[i], &_runtime_filters[i], false)); } + + _filter_src_expr_ctxs.resize(p._filter_src_expr_ctxs.size()); + for (size_t i = 0; i < _filter_src_expr_ctxs.size(); i++) { + RETURN_IF_ERROR(p._filter_src_expr_ctxs[i]->clone(state, _filter_src_expr_ctxs[i])); + } + _runtime_filter_slots = + std::make_shared<VRuntimeFilterSlotsCross>(runtime_filters(), _filter_src_expr_ctxs); + + _should_collected_blocks = true; + if (state->enable_share_hash_table_for_broadcast_join()) { + _should_collected_blocks = info.task_idx == 0; + if (_should_collected_blocks) { + p._shared_collected_data_controller->set_builder_and_consumers( + state->fragment_instance_id(), p.node_id()); + } + } + + profile()->add_info_string("SharedCollectedEnabled", Review Comment: seems unless -- 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