Skip to content

Commit

Permalink
Added toschemaRDD to test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrapCodes committed Jul 30, 2014
1 parent 0b712bb commit b1968d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repl/src/test/scala/org/apache/spark/repl/ReplSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ class ReplSuite extends FunSuite {
|val sqlContext = new org.apache.spark.sql.SQLContext(sc)
|import sqlContext.createSchemaRDD
|case class TestCaseClass(value: Int)
|sc.parallelize(1 to 10).map(x => TestCaseClass(x)).collect
|sc.parallelize(1 to 10).map(x => TestCaseClass(x)).toSchemaRDD.collect
""".stripMargin)
assertDoesNotContain("error:", output)
assertDoesNotContain("Exception", output)
}

test("SPARK-2632 importing a method") {
test("SPARK-2632 importing a method from non serializable class and not using it.") {
val output = runInterpreter("local",
"""
|class TestClass() { def testMethod = 3 }
Expand Down

0 comments on commit b1968d2

Please sign in to comment.