Skip to content

Commit 0b585ee

Browse files
committed
[Bug-Fix] Bucket shuffle join executes failed when two tables have no 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
1 parent c999566 commit 0b585ee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ private boolean canBucketShuffleJoin(HashJoinNode node, PlanNode leftRoot,
545545
OlapScanNode leftScanNode = ((OlapScanNode) leftRoot);
546546

547547
//1 the left table must be only one partition
548-
if (leftScanNode.getSelectedPartitionIds().size() > 1) {
548+
if (leftScanNode.getSelectedPartitionIds().size() != 1) {
549549
return false;
550550
}
551551

0 commit comments

Comments
 (0)