Skip to content

Commit

Permalink
[Bug-Fix] Bucket shuffle join executes failed when two tables have no…
Browse files Browse the repository at this point in the history
… data (apache#5145)

Bucket shuffle join is an algorithm of joining two tables. Left table is distributed by a column.
Right table sends the data to the left table for joining operation.
It reduces the network cost. But when two table is without any data. Bucket shuffle join will fail.

Related Issue: apache#5144
  • Loading branch information
xinghuayu007 authored Dec 31, 2020
1 parent bebbc27 commit 44325ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ private boolean canBucketShuffleJoin(HashJoinNode node, PlanNode leftRoot,
OlapScanNode leftScanNode = ((OlapScanNode) leftRoot);

//1 the left table must be only one partition
if (leftScanNode.getSelectedPartitionIds().size() > 1) {
if (leftScanNode.getSelectedPartitionIds().size() != 1) {
return false;
}

Expand Down

0 comments on commit 44325ae

Please sign in to comment.