@@ -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