Skip to content

Commit df70b01

Browse files
committed
Address comment and rebase to latest master
1 parent b7b9b1d commit df70b01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ case class SortMergeJoinExec(
754754
ctx.freshName("hasOutputRow"), outputRow, eagerCleanup)
755755
case LeftAnti =>
756756
codegenAnti(streamedInput, findNextJoinRows, beforeLoop, iterator, bufferedRow, condCheck,
757-
loadStreamed, ctx.freshName("hasOutputRow"), outputRow, eagerCleanup)
757+
loadStreamed, ctx.freshName("hasMatchedRow"), outputRow, eagerCleanup)
758758
case x =>
759759
throw new IllegalArgumentException(
760760
s"SortMergeJoin.doProduce should not take $x as the JoinType")
@@ -859,22 +859,22 @@ case class SortMergeJoinExec(
859859
bufferedRow: String,
860860
conditionCheck: String,
861861
loadStreamed: String,
862-
hasOutputRow: String,
862+
hasMatchedRow: String,
863863
outputRow: String,
864864
eagerCleanup: String): String = {
865865
s"""
866866
|while ($streamedInput.hasNext()) {
867867
| $findNextJoinRows;
868868
| $beforeLoop
869-
| boolean $hasOutputRow = false;
869+
| boolean $hasMatchedRow = false;
870870
|
871-
| while (!$hasOutputRow && $matchIterator.hasNext()) {
871+
| while (!$hasMatchedRow && $matchIterator.hasNext()) {
872872
| InternalRow $bufferedRow = (InternalRow) $matchIterator.next();
873873
| $conditionCheck
874-
| $hasOutputRow = true;
874+
| $hasMatchedRow = true;
875875
| }
876876
|
877-
| if (!$hasOutputRow) {
877+
| if (!$hasMatchedRow) {
878878
| // load all values of streamed row, because the values not in join condition are not
879879
| // loaded yet.
880880
| $loadStreamed

0 commit comments

Comments
 (0)