Skip to content

Commit

Permalink
Revert optimization for BroadcastNestedLoopJoin (this fixes tests).
Browse files Browse the repository at this point in the history
  • Loading branch information
concretevitamin committed Jul 29, 2014
1 parent 0ef9e5b commit 43d38a6
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,8 @@ private[sql] abstract class SparkStrategies extends QueryPlanner[SparkPlan] {
object BroadcastNestedLoopJoin extends Strategy {
def apply(plan: LogicalPlan): Seq[SparkPlan] = plan match {
case logical.Join(left, right, joinType, condition) =>
val (streamed, broadcast) =
if (right.statistics.sizeInBytes <= left.statistics.sizeInBytes) (left, right)
else (right, left)
execution.BroadcastNestedLoopJoin(
planLater(streamed), planLater(broadcast), joinType, condition)(sqlContext) :: Nil
planLater(left), planLater(right), joinType, condition)(sqlContext) :: Nil
case _ => Nil
}
}
Expand Down

0 comments on commit 43d38a6

Please sign in to comment.