starocean999 commented on code in PR #19169:
URL: https://github.com/apache/doris/pull/19169#discussion_r1179848673


##########
fe/fe-core/src/main/java/org/apache/doris/qe/Coordinator.java:
##########
@@ -1357,8 +1357,8 @@ private void computeFragmentExecParams() throws Exception 
{
 
                 // when left table is empty, it's bucketset is empty.
                 // set right table destination address to the address of left 
table
-                if (destParams.instanceExecParams.size() == 1
-                        && 
destParams.instanceExecParams.get(0).bucketSeqSet.isEmpty()) {
+                if (destParams.instanceExecParams.size() == 1 && (bucketNum == 0
+                        || 
destParams.instanceExecParams.get(0).bucketSeqSet.isEmpty())) {

Review Comment:
   for colocate join, the bucketNum is the bucket number in default 
distribution info. So even the table is empty, the bucketNum is not 0. So add 
it back to handle the colocate join case



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to