Skip to content

Commit

Permalink
[Bug] Fix bucket shuffle bug when left table is without any data (apa…
Browse files Browse the repository at this point in the history
  • Loading branch information
xinghuayu007 authored Jun 16, 2021
1 parent 8b4721c commit daf8ce2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,13 @@ private void computeFragmentExecParams() throws Exception {
int bucketSeq = 0;
int bucketNum = bucketShuffleJoinController.getFragmentBucketNum(destFragment.getFragmentId());
TNetworkAddress dummyServer = new TNetworkAddress("0.0.0.0", 0);


// 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()) {
bucketNum = 1;
destParams.instanceExecParams.get(0).bucketSeqSet.add(0);
}
while (bucketSeq < bucketNum) {
TPlanFragmentDestination dest = new TPlanFragmentDestination();

Expand Down

0 comments on commit daf8ce2

Please sign in to comment.