File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
core/src/main/scala/org/apache/spark/sql/execution/joins Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -476,10 +476,6 @@ case class HashJoinExec(leftKeys: Seq[Expression],
476476 val produced = streamedPlan.asInstanceOf [CodegenSupport ].produce(ctx, this )
477477
478478 val beforeMap = ctx.freshName(" beforeMap" )
479- val skipScan = skipProcessForEmptyMap()
480- val skipCondition = if (skipScan) {
481- s " if( $hashMapTerm.size() == 0) return; "
482- } else " "
483479
484480 s """
485481 boolean $keyIsUniqueTerm = true;
@@ -495,21 +491,13 @@ case class HashJoinExec(leftKeys: Seq[Expression],
495491 final $entryClass[] $mapDataTerm = ( $entryClass[]) $hashMapTerm.data();
496492 long $numRowsTerm = 0L;
497493 try {
498- $skipCondition
499494 ${session.evaluateFinallyCode(ctx, produced)}
500495 } finally {
501496 $numOutputRows. ${metricAdd(numRowsTerm)};
502497 }
503498 """
504499 }
505500
506- private def skipProcessForEmptyMap () : Boolean = {
507- joinType match {
508- case Inner | LeftSemi => true
509- case _ => false
510- }
511- }
512-
513501 override def doConsume (ctx : CodegenContext , input : Seq [ExprCode ],
514502 row : ExprCode ): String = {
515503 // variable that holds if relation is unique to optimize iteration
You can’t perform that action at this time.
0 commit comments