Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jun 25, 2024
1 parent cd9c752 commit 1af9126
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,7 @@ private void setForBucketScanSource(FInstanceExecParam instanceExecParam,
if (scanNode instanceof OlapScanNode) {
OlapScanNode olapScanNode = (OlapScanNode) scanNode;
if (!fragmentIdToSeqToAddressMap.containsKey(scanNode.getFragmentId())) {
// In bucket shuffle join, we have 2 situation.
// 1. Only one partition: in this case, we use scanNode.getTotalTabletsNum()
// to get the right bucket num because when table turn on dynamic partition,
// the bucket number in default distribution info
// is not correct.
// 2. Table is colocated: in this case, table could have more than one partition,
// but all partition's bucket number must be same, so we use default bucket num is ok.
int bucketNum = 0;
if (olapScanNode.getOlapTable().isColocateTable()) {
bucketNum = olapScanNode.getOlapTable().getDefaultDistributionInfo()
.getBucketNum();
} else {
bucketNum = (int) (olapScanNode.getTotalTabletsNum());
}
int bucketNum = olapScanNode.getBucketNum();
fragmentIdToSeqToAddressMap.put(olapScanNode.getFragmentId(), new HashMap<>());
bucketShuffleJoinController.fragmentIdBucketSeqToScanRangeMap
.put(scanNode.getFragmentId(), new BucketSeqToScanRange());
Expand Down

0 comments on commit 1af9126

Please sign in to comment.