Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Apr 15, 2015
1 parent 413fd24 commit ec8061b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ private[sql] case class EnsureRequirements(sqlContext: SQLContext) extends Rule[
case (required, child) => required.nonEmpty && required != child
}


// True iff outputPartitionings of children are compatible with each other.
// It is possible that every child satisfies its required data distribution
// but two children have incompatible outputPartitionings. For example,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ case class SortMergeJoin(
ClusteredDistribution(leftKeys) :: ClusteredDistribution(rightKeys) :: Nil

// this is to manually construct an ordering that can be used to compare keys from both sides
private val keyOrdering: RowOrdering =
RowOrdering.forSchema(leftKeys.map(_.dataType))
private val keyOrdering: RowOrdering = RowOrdering.forSchema(leftKeys.map(_.dataType))

override def outputOrdering: Seq[SortOrder] = requiredOrders(leftKeys)

Expand Down

0 comments on commit ec8061b

Please sign in to comment.