Skip to content

Commit

Permalink
Point the empty schema inference test at JsonRDD2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Howell committed May 1, 2015
1 parent ab6ee87 commit 842846d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.scalactic.Tolerance._

import org.apache.spark.sql.TestData._
import org.apache.spark.sql.functions._
import org.apache.spark.sql.json.JsonRDD.compatibleType
import org.apache.spark.sql.json.JsonRDD2.compatibleType
import org.apache.spark.sql.sources.LogicalRelation
import org.apache.spark.sql.test.TestSQLContext
import org.apache.spark.sql.test.TestSQLContext._
Expand Down Expand Up @@ -1069,7 +1069,7 @@ class JsonSuite extends QueryTest {

test("SPARK-6245 JsonRDD.inferSchema on empty RDD") {
// This is really a test that it doesn't throw an exception
val emptySchema = JsonRDD.inferSchema(empty, 1.0, "")
val emptySchema = JsonRDD2.inferSchema(empty, 1.0, "")
assert(StructType(Seq()) === emptySchema)
}

Expand Down

0 comments on commit 842846d

Please sign in to comment.