Skip to content

Commit

Permalink
Fix JSON RDD Conversion too
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Sep 10, 2014
1 parent 59065bc commit 646976b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
package org.apache.spark.sql.json

import scala.collection.Map
import scala.collection.convert.Wrappers.{JMapWrapper, JListWrapper}
import scala.collection.JavaConversions._
import scala.collection.convert.Wrappers.JMapWrapper
import scala.math.BigDecimal

import com.fasterxml.jackson.databind.ObjectMapper
Expand Down Expand Up @@ -253,7 +254,7 @@ private[sql] object JsonRDD extends Logging {
// This issue is documented at https://issues.scala-lang.org/browse/SI-7005
JMapWrapper(map).mapValues(scalafy).map(identity)
case list: java.util.List[_] =>
JListWrapper(list).map(scalafy)
(list: Seq[_]).map(scalafy)
case atom => atom
}

Expand Down

0 comments on commit 646976b

Please sign in to comment.