Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chz ignore to test
  • Loading branch information
Cazen committed Dec 28, 2015
commit 8d0f52ab75fe41789ef6cea0ad3e80cb96631bd9
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ class JsonParsingOptionsSuite extends QueryTest with SharedSQLContext {
assert(df.first().getDouble(0).isNaN)
}

ignore("allowBackslashEscapingAnyCharacter off") {
test("allowBackslashEscapingAnyCharacter off") {
val str = """{"name": "Cazen Lee"}"""
val rdd = sqlContext.sparkContext.parallelize(Seq(str))
val df = sqlContext.read.option("allowBackslashEscapingAnyCharacter", "false").json(rdd)

assert(df.schema.head.name == "null")
}

ignore("allowBackslashEscapingAnyCharacter on") {
test("allowBackslashEscapingAnyCharacter on") {
val str = """{"name": "Cazen Lee"}"""
val rdd = sqlContext.sparkContext.parallelize(Seq(str))
val df = sqlContext.read.option("allowBackslashEscapingAnyCharacter", "true").json(rdd)
Expand Down