Skip to content

Commit

Permalink
fix RDDSuite.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
witgo committed May 9, 2014
1 parent 2c543b9 commit 046540d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/test/scala/org/apache/spark/rdd/RDDSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ class RDDSuite extends FunSuite with SharedSparkContext {

// we can optionally shuffle to keep the upstream parallel
val coalesced5 = data.coalesce(1, shuffle = true)
val bool = coalesced5.dependencies.head.rdd.dependencies.head.rdd.asInstanceOf[ShuffledRDD[_, _, _]] !=
null
assert(bool)
assert(coalesced5.dependencies.head.rdd.dependencies.head.rdd.
asInstanceOf[ShuffledRDD[Int, Int, (Int, Int)]] !== null )

// when shuffling, we can increase the number of partitions
val coalesced6 = data.coalesce(20, shuffle = true)
Expand Down

0 comments on commit 046540d

Please sign in to comment.