Skip to content

Commit

Permalink
[fix](join) Fix partitioned hash join strategy (#40164)
Browse files Browse the repository at this point in the history
## Proposed changes

pick #40163

<!--Describe your changes.-->
  • Loading branch information
Gabriel39 authored Aug 30, 2024
1 parent 1288676 commit 531fe54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions be/src/pipeline/pipeline_x/pipeline_x_fragment_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,8 @@ Status PipelineXFragmentContext::_create_operator(ObjectPool* pool, const TPlanN

_pipeline_parent_map.push(op->node_id(), cur_pipe);
_pipeline_parent_map.push(op->node_id(), build_side_pipe);
sink->set_followed_by_shuffled_join(sink->is_shuffled_hash_join());
op->set_followed_by_shuffled_join(op->is_shuffled_hash_join());
} else {
op.reset(new HashJoinProbeOperatorX(pool, tnode, next_operator_id(), descs));
RETURN_IF_ERROR(cur_pipe->add_operator(op));
Expand All @@ -1181,6 +1183,8 @@ Status PipelineXFragmentContext::_create_operator(ObjectPool* pool, const TPlanN

_pipeline_parent_map.push(op->node_id(), cur_pipe);
_pipeline_parent_map.push(op->node_id(), build_side_pipe);
sink->set_followed_by_shuffled_join(sink->is_shuffled_hash_join());
op->set_followed_by_shuffled_join(op->is_shuffled_hash_join());
}
_require_bucket_distribution =
_require_bucket_distribution || op->require_data_distribution();
Expand Down

0 comments on commit 531fe54

Please sign in to comment.