Skip to content

Commit

Permalink
[fix](core) Fix BUCKET_HASH_SHUFFLE local exchanger (apache#40148)
Browse files Browse the repository at this point in the history
## Proposed changes

Issue Number: close #xxx

<!--Describe your changes.-->
  • Loading branch information
Gabriel39 authored Aug 29, 2024
1 parent eae7cf0 commit 7c6ce2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion be/src/pipeline/pipeline_fragment_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ Status PipelineFragmentContext::_add_local_exchange_impl(
sink_id, local_exchange_id,
should_disable_bucket_shuffle ? _total_instances : _num_instances,
data_distribution.partition_exprs, bucket_seq_to_instance_idx));
if (should_disable_bucket_shuffle &&
if (bucket_seq_to_instance_idx.empty() &&
data_distribution.distribution_type == ExchangeType::BUCKET_HASH_SHUFFLE) {
data_distribution.distribution_type = ExchangeType::HASH_SHUFFLE;
}
Expand Down

0 comments on commit 7c6ce2a

Please sign in to comment.