Skip to content

Commit b82540e

Browse files
committed
review comments addressed
1 parent 1c38e97 commit b82540e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/joins/SortMergeJoinExec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ case class SortMergeJoinExec(
6969
val rightKeyOrdering = getKeyOrdering(rightKeys, right.outputOrdering)
7070
leftKeyOrdering.zip(rightKeyOrdering).map { case (lKey, rKey) =>
7171
// Also add expressions from right side sort order
72-
val sameOrderExpressions = ExpressionSet(lKey.children ++ rKey.children) - lKey.child
72+
val sameOrderExpressions = ExpressionSet(lKey.sameOrderExpressions ++ rKey.children)
7373
SortOrder(lKey.child, Ascending, sameOrderExpressions.toSeq)
7474
}
7575
// For left and right outer joins, the output is ordered by the streamed input's join keys.

0 commit comments

Comments
 (0)