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 test2
  • Loading branch information
Cazen committed Dec 28, 2015
commit cc4ad3b018bab6304f05e0bc4c98fa213e2083e3
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class JsonParsingOptionsSuite extends QueryTest with SharedSQLContext {
}

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

Expand All @@ -122,7 +122,7 @@ class JsonParsingOptionsSuite extends QueryTest with SharedSQLContext {
}

test("allowBackslashEscapingAnyCharacter on") {
val str = """{"name": "Cazen Lee"}"""
val str = """{"name": "Cazen Lee", "price": "\$10"}"""
val rdd = sqlContext.sparkContext.parallelize(Seq(str))
val df = sqlContext.read.option("allowBackslashEscapingAnyCharacter", "true").json(rdd)

Expand Down