Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Apr 10, 2015
1 parent 645c70b commit a28277f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ private[sql] case class AddExchange(sqlContext: SQLContext) extends Rule[SparkPl
case (UnspecifiedDistribution, child) => child
case (dist, _) => sys.error(s"Don't know how to ensure $dist")
}
val reorderedChildren = operator.requiredInPartitionOrdering.zip(repartitionedChildren).map {
case (Nil, child) =>
child
case (ordering, child) =>
addSortIfNecessary(ordering, child)
}
val reorderedChildren =
operator.requiredInPartitionOrdering.zip(repartitionedChildren).map {
case (Nil, child) => child
case (ordering, child) =>
addSortIfNecessary(ordering, child)
}
operator.withNewChildren(reorderedChildren)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ class SortMergeCompatibilitySuite extends HiveCompatibilitySuite {
"join_reorder4",
"join_star"
)
}
}

0 comments on commit a28277f

Please sign in to comment.