Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed Jun 24, 2015
1 parent 2d8be83 commit 214842b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ object UnionPushDown extends Rule[LogicalPlan] {
* This method relies on the fact that the output attributes of a union are always equal
* to the left child's output.
*/
private def pushToRight[A <: Expression](e: A, rewrites: AttributeMap[Attribute]): A = {
private def pushToRight[A <: Expression](e: A, rewrites: AttributeMap[Attribute]) = {
val result = e transform {
case a: Attribute => rewrites(a)
}
Expand Down Expand Up @@ -505,7 +505,7 @@ object PushPredicateThroughProject extends Rule[LogicalPlan] {
grandChild))
}

private def replaceAlias(condition: Expression, sourceAliases: Map[Attribute, Expression]): Expression = {
private def replaceAlias(condition: Expression, sourceAliases: Map[Attribute, Expression]) = {
condition transform {
case a: AttributeReference => sourceAliases.getOrElse(a, a)
}
Expand Down

0 comments on commit 214842b

Please sign in to comment.