Skip to content

Commit ab71f21

Browse files
committed
Format.
1 parent fc2bed1 commit ab71f21

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/types/dataTypes.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,10 @@ object MapType {
353353
MapType(keyType: DataType, valueType: DataType, true)
354354
}
355355

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 {
357360
private[sql] def buildFormattedString(prefix: String, builder: StringBuilder): Unit = {
358361
builder.append(s"${prefix}-- key: ${keyType.simpleString}\n")
359362
builder.append(s"${prefix}-- value: ${valueType.simpleString}\n")

sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ private[sql] object JsonRDD extends Logging {
264264
// So, right now, we will have Infinity for those BigDecimal number.
265265
// TODO: Support BigDecimal.
266266
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),
268268
// the ObjectMapper will take the last value associated with this duplicate key.
269269
// For example: for {"key": 1, "key":2}, we will get "key"->2.
270270
val mapper = new ObjectMapper()

0 commit comments

Comments
 (0)