Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Surbhi-Vijay committed Feb 12, 2024
1 parent f11af4c commit 4da2eb2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ abstract class BroadcastNestedLoopJoinTransformer(
override def leftKeys: Seq[Expression] = Nil
override def rightKeys: Seq[Expression] = Nil

protected lazy val substraitJoinType: CrossRel.JoinType =
private lazy val substraitJoinType: CrossRel.JoinType =
SubstraitUtil.toCrossRelSubstrait(joinType)

lazy val buildTableId: String = "BuildTable-" + buildPlan.id
private lazy val buildTableId: String = "BuildTable-" + buildPlan.id

// Hint substrait to switch the left and right,
// since we assume always build right side in substrait.
protected lazy val needSwitchChildren: Boolean = buildSide match {
private lazy val needSwitchChildren: Boolean = buildSide match {
case BuildLeft => true
case BuildRight => false
}

lazy val (buildPlan, streamedPlan) = if (needSwitchChildren) {
protected lazy val (buildPlan, streamedPlan) = if (needSwitchChildren) {
(left, right)
} else {
(right, left)
Expand Down

0 comments on commit 4da2eb2

Please sign in to comment.