You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spark.apache.org by Chang Chen <ba...@gmail.com> on 2017/07/27 01:43:55 UTC

Question on HashJoin trait

Hi

I am reading Spark SQL codes,  what do streamedPlan and buildPlan
of HashJoin trait for?

protected lazy val (buildPlan, streamedPlan) = buildSide match {
  case BuildLeft => (left, right)
  case BuildRight => (right, left)
}


https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/execution/joins/HashJoin.scala#L59

Thanks
Chang