[SPARK-22193][SQL] Minor typo fix
## What changes were proposed in this pull request? [SPARK-22193][SQL] Minor typo fix in SortMergeJoinExec. Nothing major, but it bothered me going into.Hence fixing ## How was this patch tested? existing tests Author: Rekha Joshi <rekhajoshm@gmail.com> Author: rjoshi2 <rekhajoshm@gmail.com> Closes #19422 from rekhajoshm/SPARK-22193.
This commit is contained in:
parent
3099c574c5
commit
d54670192a
|
@ -402,7 +402,7 @@ case class SortMergeJoinExec(
|
|||
}
|
||||
}
|
||||
|
||||
private def genComparision(ctx: CodegenContext, a: Seq[ExprCode], b: Seq[ExprCode]): String = {
|
||||
private def genComparison(ctx: CodegenContext, a: Seq[ExprCode], b: Seq[ExprCode]): String = {
|
||||
val comparisons = a.zip(b).zipWithIndex.map { case ((l, r), i) =>
|
||||
s"""
|
||||
|if (comp == 0) {
|
||||
|
@ -463,7 +463,7 @@ case class SortMergeJoinExec(
|
|||
| continue;
|
||||
| }
|
||||
| if (!$matches.isEmpty()) {
|
||||
| ${genComparision(ctx, leftKeyVars, matchedKeyVars)}
|
||||
| ${genComparison(ctx, leftKeyVars, matchedKeyVars)}
|
||||
| if (comp == 0) {
|
||||
| return true;
|
||||
| }
|
||||
|
@ -484,7 +484,7 @@ case class SortMergeJoinExec(
|
|||
| }
|
||||
| ${rightKeyVars.map(_.code).mkString("\n")}
|
||||
| }
|
||||
| ${genComparision(ctx, leftKeyVars, rightKeyVars)}
|
||||
| ${genComparison(ctx, leftKeyVars, rightKeyVars)}
|
||||
| if (comp > 0) {
|
||||
| $rightRow = null;
|
||||
| } else if (comp < 0) {
|
||||
|
|
Loading…
Reference in a new issue