@@ -400,7 +400,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
400
400
* Generates the code for Inner join.
401
401
*/
402
402
protected def codegenInner (ctx : CodegenContext , input : Seq [ExprCode ]): String = {
403
- val (relationTerm, keyIsKnownUnique ) = prepareRelation(ctx)
403
+ val (relationTerm, keyIsUnique ) = prepareRelation(ctx)
404
404
val (keyEv, anyNull) = genStreamSideJoinKey(ctx, input)
405
405
val (matched, checkCondition, buildVars) = getJoinCondition(ctx, input)
406
406
val numOutput = metricTerm(ctx, " numOutputRows" )
@@ -410,7 +410,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
410
410
case BuildRight => input ++ buildVars
411
411
}
412
412
413
- if (keyIsKnownUnique ) {
413
+ if (keyIsUnique ) {
414
414
s """
415
415
|// generate join key for stream side
416
416
| ${keyEv.code}
@@ -450,7 +450,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
450
450
* Generates the code for left or right outer join.
451
451
*/
452
452
protected def codegenOuter (ctx : CodegenContext , input : Seq [ExprCode ]): String = {
453
- val (relationTerm, keyIsKnownUnique ) = prepareRelation(ctx)
453
+ val (relationTerm, keyIsUnique ) = prepareRelation(ctx)
454
454
val (keyEv, anyNull) = genStreamSideJoinKey(ctx, input)
455
455
val matched = ctx.freshName(" matched" )
456
456
val buildVars = genBuildSideVars(ctx, matched)
@@ -482,7 +482,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
482
482
case BuildRight => input ++ buildVars
483
483
}
484
484
485
- if (keyIsKnownUnique ) {
485
+ if (keyIsUnique ) {
486
486
s """
487
487
|// generate join key for stream side
488
488
| ${keyEv.code}
@@ -527,12 +527,12 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
527
527
* Generates the code for left semi join.
528
528
*/
529
529
protected def codegenSemi (ctx : CodegenContext , input : Seq [ExprCode ]): String = {
530
- val (relationTerm, keyIsKnownUnique ) = prepareRelation(ctx)
530
+ val (relationTerm, keyIsUnique ) = prepareRelation(ctx)
531
531
val (keyEv, anyNull) = genStreamSideJoinKey(ctx, input)
532
532
val (matched, checkCondition, _) = getJoinCondition(ctx, input)
533
533
val numOutput = metricTerm(ctx, " numOutputRows" )
534
534
535
- if (keyIsKnownUnique ) {
535
+ if (keyIsUnique ) {
536
536
s """
537
537
|// generate join key for stream side
538
538
| ${keyEv.code}
@@ -576,12 +576,12 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
576
576
* Generates the code for anti join.
577
577
*/
578
578
protected def codegenAnti (ctx : CodegenContext , input : Seq [ExprCode ]): String = {
579
- val (relationTerm, keyIsKnownUnique ) = prepareRelation(ctx)
579
+ val (relationTerm, keyIsUnique ) = prepareRelation(ctx)
580
580
val (keyEv, anyNull) = genStreamSideJoinKey(ctx, input)
581
581
val (matched, checkCondition, _) = getJoinCondition(ctx, input)
582
582
val numOutput = metricTerm(ctx, " numOutputRows" )
583
583
584
- if (keyIsKnownUnique ) {
584
+ if (keyIsUnique ) {
585
585
val found = ctx.freshName(" found" )
586
586
s """
587
587
|boolean $found = false;
@@ -637,7 +637,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
637
637
* Generates the code for existence join.
638
638
*/
639
639
protected def codegenExistence (ctx : CodegenContext , input : Seq [ExprCode ]): String = {
640
- val (relationTerm, keyIsKnownUnique ) = prepareRelation(ctx)
640
+ val (relationTerm, keyIsUnique ) = prepareRelation(ctx)
641
641
val (keyEv, anyNull) = genStreamSideJoinKey(ctx, input)
642
642
val numOutput = metricTerm(ctx, " numOutputRows" )
643
643
val existsVar = ctx.freshName(" exists" )
@@ -664,7 +664,7 @@ trait HashJoin extends BaseJoinExec with CodegenSupport {
664
664
val resultVar = input ++ Seq (ExprCode .forNonNullValue(
665
665
JavaCode .variable(existsVar, BooleanType )))
666
666
667
- if (keyIsKnownUnique ) {
667
+ if (keyIsUnique ) {
668
668
s """
669
669
|// generate join key for stream side
670
670
| ${keyEv.code}
0 commit comments