Skip to content

Commit 842846d

Browse files
author
Nathan Howell
committed
Point the empty schema inference test at JsonRDD2
1 parent ab6ee87 commit 842846d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/test/scala/org/apache/spark/sql/json/JsonSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.scalactic.Tolerance._
2525

2626
import org.apache.spark.sql.TestData._
2727
import org.apache.spark.sql.functions._
28-
import org.apache.spark.sql.json.JsonRDD.compatibleType
28+
import org.apache.spark.sql.json.JsonRDD2.compatibleType
2929
import org.apache.spark.sql.sources.LogicalRelation
3030
import org.apache.spark.sql.test.TestSQLContext
3131
import org.apache.spark.sql.test.TestSQLContext._
@@ -1069,7 +1069,7 @@ class JsonSuite extends QueryTest {
10691069

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

0 commit comments

Comments
 (0)