This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 44325ae  [Bug-Fix] Bucket shuffle join executes failed when two tables 
have no data (#5145)
44325ae is described below

commit 44325ae850d0cda8f2675af5b6825acb246fb988
Author: xinghuayu007 <[email protected]>
AuthorDate: Thu Dec 31 09:49:35 2020 +0800

    [Bug-Fix] Bucket shuffle join executes failed when two tables have no data 
(#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: #5144
---
 .../src/main/java/org/apache/doris/planner/DistributedPlanner.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java
index efaa5c1..16caf11 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/DistributedPlanner.java
@@ -545,7 +545,7 @@ public class DistributedPlanner {
         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;
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to