File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -401,11 +401,6 @@ case class StructField(
401401 DataType .buildFormattedString(dataType, s " $prefix | " , builder)
402402 }
403403
404- override def toString : String = {
405- // Do not add metadata to be consistent with CaseClassStringParser.
406- s " StructField( $name, $dataType, $nullable) "
407- }
408-
409404 private [sql] def jsonValue : JValue = {
410405 (" name" -> name) ~
411406 (" type" -> dataType.jsonValue) ~
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ object Metadata {
153153 private def toJsonValue (obj : Any ): JValue = {
154154 obj match {
155155 case map : Map [_, _] =>
156- val fields = map.toList.map { case (k : String , v) => (k, toJsonValue(v))}
156+ val fields = map.toList.map { case (k : String , v) => (k, toJsonValue(v)) }
157157 JObject (fields)
158158 case arr : Array [_] =>
159159 val values = arr.toList.map(toJsonValue)
You can’t perform that action at this time.
0 commit comments