Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update the code style issues
  • Loading branch information
chenghao-intel committed Jun 26, 2014
commit cec34e883d8be966321059b9974e10fcedeed8e8
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ object ExtractEquiJoinKeys extends Logging with PredicateHelper {
logger.debug(s"Considering join on: $condition")
// Find equi-join predicates that can be evaluated before the join, and thus can be used
// as join keys.
val (joinPredicates, otherPredicates) = condition.map(splitConjunctivePredicates).
getOrElse(Nil).partition {
val (joinPredicates, otherPredicates) =
condition.map(splitConjunctivePredicates).getOrElse(Nil).partition {
case EqualTo(l, r) if (canEvaluate(l, left) && canEvaluate(r, right)) ||
(canEvaluate(l, right) && canEvaluate(r, left)) => true
case _ => false
Expand All @@ -186,7 +186,7 @@ object ExtractEquiJoinKeys extends Logging with PredicateHelper {
val leftKeys = joinKeys.map(_._1)
val rightKeys = joinKeys.map(_._2)

if(leftKeys.length > 0) {
if (leftKeys.length > 0) {
logger.debug(s"leftKeys:${leftKeys} | rightKeys:${rightKeys}")
Some((joinType, leftKeys, rightKeys, otherPredicates.reduceOption(And), left, right))
} else {
Expand Down