Skip to content

Commit bcc17e0

Browse files
committed
Fix a test: use multi-line files as an input
1 parent 4b3592f commit bcc17e0

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
200 Bytes
Binary file not shown.
-30 Bytes
Binary file not shown.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ class JsonSuite extends QueryTest with SharedSQLContext with TestJsonData {
21732173
}
21742174

21752175
test("SPARK-23723: json in UTF-16 with BOM") {
2176-
val fileName = "test-data/utf16WithBOM.json"
2176+
val fileName = "test-data/utf16LEWithBOM.json"
21772177
val schema = new StructType().add("firstName", StringType).add("lastName", StringType)
21782178
val jsonDF = spark.read.schema(schema)
21792179
.option("multiline", "true")
@@ -2424,7 +2424,7 @@ class JsonSuite extends QueryTest with SharedSQLContext with TestJsonData {
24242424
val schema = new StructType().add("firstName", StringType).add("lastName", StringType)
24252425
val jsonDF = spark.read.schema(schema)
24262426
.option("multiLine", false)
2427-
.option("lineSep", "0d.00 0a.00")
2427+
.option("lineSep", "x0d.00 0a.00")
24282428
.json(testFile(fileName))
24292429

24302430
checkAnswer(jsonDF, Seq(Row("Chris", "Baird"), Row("Doug", "Rood")))

0 commit comments

Comments
 (0)