File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
catalyst/src/main/scala/org/apache/spark/sql/catalyst/types
core/src/main/scala/org/apache/spark/sql/json Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,10 @@ object MapType {
353
353
MapType (keyType : DataType , valueType : DataType , true )
354
354
}
355
355
356
- case class MapType (keyType : DataType , valueType : DataType , valueContainsNull : Boolean ) extends DataType {
356
+ case class MapType (
357
+ keyType : DataType ,
358
+ valueType : DataType ,
359
+ valueContainsNull : Boolean ) extends DataType {
357
360
private [sql] def buildFormattedString (prefix : String , builder : StringBuilder ): Unit = {
358
361
builder.append(s " ${prefix}-- key: ${keyType.simpleString}\n " )
359
362
builder.append(s " ${prefix}-- value: ${valueType.simpleString}\n " )
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ private[sql] object JsonRDD extends Logging {
264
264
// So, right now, we will have Infinity for those BigDecimal number.
265
265
// TODO: Support BigDecimal.
266
266
json.mapPartitions(iter => {
267
- // Also, when there is a key appearing multiple times (a duplicate key),
267
+ // When there is a key appearing multiple times (a duplicate key),
268
268
// the ObjectMapper will take the last value associated with this duplicate key.
269
269
// For example: for {"key": 1, "key":2}, we will get "key"->2.
270
270
val mapper = new ObjectMapper ()
You can’t perform that action at this time.
0 commit comments