Skip to content

Commit

Permalink
ReplSuite
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Feb 5, 2015
1 parent 1c946ab commit edd296b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ class ReplSuite extends FunSuite {
assertDoesNotContain("Exception", output)
}

test("SPARK-2576 importing SQLContext.createDataFrame.") {
test("SPARK-2576 importing SQLContext.implicits._") {
// We need to use local-cluster to test this case.
val output = runInterpreter("local-cluster[1,1,512]",
"""
|val sqlContext = new org.apache.spark.sql.SQLContext(sc)
|import sqlContext.createDataFrame
|import sqlContext.implicits._
|case class TestCaseClass(value: Int)
|sc.parallelize(1 to 10).map(x => TestCaseClass(x)).toDataFrame.collect()
""".stripMargin)
Expand Down

0 comments on commit edd296b

Please sign in to comment.