[Chore](runtime-filter) add check is broadcast on nlj (#33088)
add check is broadcast on nlj
This commit is contained in:
@ -44,6 +44,11 @@ Status NestedLoopJoinBuildSinkLocalState::init(RuntimeState* state, LocalSinkSta
|
||||
for (size_t i = 0; i < p._runtime_filter_descs.size(); i++) {
|
||||
RETURN_IF_ERROR(state->register_producer_runtime_filter(
|
||||
p._runtime_filter_descs[i], p._need_local_merge, &_runtime_filters[i], false));
|
||||
if (!_runtime_filters[i]->is_broadcast_join()) {
|
||||
return Status::InternalError(
|
||||
"runtime filter({}) on NestedLoopJoin should be set to is_broadcast_join,",
|
||||
_runtime_filters[i]->get_name());
|
||||
}
|
||||
}
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
@ -685,7 +685,7 @@ public final class RuntimeFilter {
|
||||
if (node instanceof HashJoinNode) {
|
||||
setIsBroadcast(((HashJoinNode) node).getDistributionMode() == HashJoinNode.DistributionMode.BROADCAST);
|
||||
} else {
|
||||
setIsBroadcast(false);
|
||||
setIsBroadcast(true);
|
||||
}
|
||||
if (LOG.isTraceEnabled()) {
|
||||
LOG.trace("Runtime filter: " + debugString());
|
||||
|
||||
Reference in New Issue
Block a user