Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/1346#discussion_r15511405
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala
---
@@ -259,8 +268,12 @@ private[sql] object JsonRDD extends Logging {
// the ObjectMapper will take the last value associated with this
duplicate key.
// For example: for {"key": 1, "key":2}, we will get "key"->2.
val mapper = new ObjectMapper()
- iter.map(record => mapper.readValue(record,
classOf[java.util.Map[String, Any]]))
- }).map(scalafy).map(_.asInstanceOf[Map[String, Any]])
+ iter.map {
+ record =>
--- End diff --
move record to the previous line and indent the whole thing one level less
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---