Skip to content

Commit

Permalink
[fix][nereids] fix misunderstanding about bothSideShuffleKeysAreSameO…
Browse files Browse the repository at this point in the history
…rder (#34824)

Co-authored-by: zhongjian.xzj <[email protected]>
  • Loading branch information
xzj7019 and zhongjian.xzj authored May 14, 2024
1 parent 0deb629 commit 47f0a67
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,16 +497,10 @@ private boolean bothSideShuffleKeysAreSameOrder(
boolean isSatisfy = true;
for (int i = 0; i < shuffleSideOutputList.size() && isSatisfy; i++) {
ExprId shuffleSideExprId = shuffleSideOutputList.get(i);
boolean found = false;
for (int j = 0; j < notShuffleSideOutputList.size() && !found; j++) {
ExprId notShuffleSideExprId = notShuffleSideOutputList.get(j);
if (shuffleSideExprId.equals(notShuffleSideExprId)
|| shuffleSideOutput.getEquivalenceExprIdsOf(shuffleSideExprId)
.contains(notShuffleSideExprId)) {
found = true;
}
}
if (!found) {
ExprId notShuffleSideExprId = notShuffleSideOutputList.get(i);
if (!(shuffleSideExprId.equals(notShuffleSideExprId)
|| shuffleSideOutput.getEquivalenceExprIdsOf(shuffleSideExprId)
.contains(notShuffleSideExprId))) {
isSatisfy = false;
}
}
Expand Down

0 comments on commit 47f0a67

Please sign in to comment.