We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c38e97 commit b82540eCopy full SHA for b82540e
sql/core/src/main/scala/org/apache/spark/sql/execution/joins/SortMergeJoinExec.scala
@@ -69,7 +69,7 @@ case class SortMergeJoinExec(
69
val rightKeyOrdering = getKeyOrdering(rightKeys, right.outputOrdering)
70
leftKeyOrdering.zip(rightKeyOrdering).map { case (lKey, rKey) =>
71
// Also add expressions from right side sort order
72
- val sameOrderExpressions = ExpressionSet(lKey.children ++ rKey.children) - lKey.child
+ val sameOrderExpressions = ExpressionSet(lKey.sameOrderExpressions ++ rKey.children)
73
SortOrder(lKey.child, Ascending, sameOrderExpressions.toSeq)
74
}
75
// For left and right outer joins, the output is ordered by the streamed input's join keys.
0 commit comments