File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
sql/core/src/main/scala/org/apache/spark/sql/json Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1818package org .apache .spark .sql .json
1919
2020import scala .collection .Map
21- import scala .collection .convert .Wrappers .{JMapWrapper , JListWrapper }
21+ import scala .collection .JavaConversions ._
22+ import scala .collection .convert .Wrappers .JMapWrapper
2223import scala .math .BigDecimal
2324
2425import com .fasterxml .jackson .databind .ObjectMapper
@@ -253,7 +254,7 @@ private[sql] object JsonRDD extends Logging {
253254 // This issue is documented at https://issues.scala-lang.org/browse/SI-7005
254255 JMapWrapper (map).mapValues(scalafy).map(identity)
255256 case list : java.util.List [_] =>
256- JListWrapper (list).map(scalafy)
257+ (list : Seq [_] ).map(scalafy)
257258 case atom => atom
258259 }
259260
You can’t perform that action at this time.
0 commit comments