Skip to content

Commit

Permalink
Fix cast in SparkSqlSerializer2Suite
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshRosen committed Jul 19, 2015
1 parent 0082515 commit 7e75259
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ abstract class SparkSqlSerializer2Suite extends QueryTest with BeforeAndAfterAll
expectedSerializerClass: Class[T]): Unit = {
executedPlan.foreach {
case exchange: Exchange =>
val shuffledRDD = exchange.execute().firstParent.asInstanceOf[ShuffledRDD[_, _, _]]
val dependency = shuffledRDD.getDependencies.head.asInstanceOf[ShuffleDependency[_, _, _]]
val shuffledRDD = exchange.execute()
val dependency = shuffledRDD.dependencies.head.asInstanceOf[ShuffleDependency[_, _, _]]
val serializerNotSetMessage =
s"Expected $expectedSerializerClass as the serializer of Exchange. " +
s"However, the serializer was not set."
Expand Down

0 comments on commit 7e75259

Please sign in to comment.