Skip to content

Commit

Permalink
add shuffleBucket
Browse files Browse the repository at this point in the history
  • Loading branch information
englefly committed Jun 25, 2024
1 parent b9bd791 commit b87ce36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ enum ShuffleType {
shuffle,
broadcast,
bucketShuffle,
shuffleBucket,
colocated,
unknown
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ public boolean isBroadCastJoin() {

protected Join.ShuffleType shuffleType() {
if (left() instanceof PhysicalDistribute) {
return ShuffleType.shuffle;
if (right() instanceof PhysicalDistribute) {
return ShuffleType.shuffle;
} else {
return ShuffleType.shuffleBucket;
}
}
if (right() instanceof PhysicalDistribute) {
PhysicalDistribute buildDist = (PhysicalDistribute) right();
Expand Down

0 comments on commit b87ce36

Please sign in to comment.