Skip to content

Commit

Permalink
Fixing bad formatted JSONs in two UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaido91 committed Jul 26, 2017
1 parent 972a28d commit 4da8493
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -231,7 +231,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {

test("SPARK-6201 IN type conversion") {
spark.read
.json(Seq("{\"a\": \"1\"}}", "{\"a\": \"2\"}}", "{\"a\": \"3\"}}").toDS())
.json(Seq("{\"a\": \"1\"}", "{\"a\": \"2\"}", "{\"a\": \"3\"}").toDS())
.createOrReplaceTempView("d")

checkAnswer(
Expand All @@ -241,7 +241,7 @@ class SQLQuerySuite extends QueryTest with SharedSQLContext {

test("SPARK-11226 Skip empty line in json file") {
spark.read
.json(Seq("{\"a\": \"1\"}}", "{\"a\": \"2\"}}", "{\"a\": \"3\"}}", "").toDS())
.json(Seq("{\"a\": \"1\"}", "{\"a\": \"2\"}", "{\"a\": \"3\"}", "").toDS())
.createOrReplaceTempView("d")

checkAnswer(
Expand Down

0 comments on commit 4da8493

Please sign in to comment.