hello-stephen commented on code in PR #71454:
URL: https://github.com/apache/doris/pull/71454#discussion_r4809582325
##########
be/src/exec/runtime_filter/runtime_filter_producer_helper.cpp:
##########
@@ -56,19 +56,20 @@ Status RuntimeFilterProducerHelper::init(
Status RuntimeFilterProducerHelper::init(
RuntimeState* state, const VExprContextSPtrs& build_expr_ctxs,
- const std::vector<TRuntimeFilterDesc>& runtime_filter_descs,
- const RowDescriptor& row_desc) {
- return _init(state, build_expr_ctxs, runtime_filter_descs, &row_desc);
+ const std::vector<TRuntimeFilterDesc>& runtime_filter_descs, const
RowDescriptor& row_desc,
+ bool is_broadcast_hash_join) {
+ return _init(state, build_expr_ctxs, runtime_filter_descs, &row_desc,
is_broadcast_hash_join);
}
Status RuntimeFilterProducerHelper::_init(
RuntimeState* state, const VExprContextSPtrs& build_expr_ctxs,
- const std::vector<TRuntimeFilterDesc>& runtime_filter_descs,
- const RowDescriptor* row_desc) {
+ const std::vector<TRuntimeFilterDesc>& runtime_filter_descs, const
RowDescriptor* row_desc,
+ bool is_broadcast_hash_join) {
_producers.resize(runtime_filter_descs.size());
for (size_t i = 0; i < runtime_filter_descs.size(); i++) {
RETURN_IF_ERROR(
state->register_producer_runtime_filter(runtime_filter_descs[i],
&_producers[i]));
+ _producers[i]->set_is_broadcast_hash_join(is_broadcast_hash_join);
Review Comment:
[P3] Reuse the helper's stored broadcast plan flag.
`HashJoinBuildSinkLocalState::init()` already passes `p._is_broadcast_join` to
the helper constructor, and both the set and nested-loop helpers construct the
base with `false`. Taking the same plan flag again in `init()` lets it disagree
with the helper's join mode. Omitting the optional argument silently sends a
complete broadcast filter through clone and merge. Set the producer marker from
the helper's existing `_is_broadcast_join` field and remove the extra `init()`
argument.
--
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]