MaxGekk commented on a change in pull request #27117: [SPARK-30429][SQL]
ValidateExternalType should not initiate errMsg in the constructor
URL: https://github.com/apache/spark/pull/27117#discussion_r363914469
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala
##########
@@ -407,8 +407,17 @@ case class StructType(fields: Array[StructField]) extends
DataType with Seq[Stru
override def catalogString: String = {
Review comment:
```scala
val stringConcat = new StringUtils.StringConcat()
val len = fields.length
stringConcat.append("struct<")
var i = 0
while (i < len) {
stringConcat.append(s"${fields(i).name}:${fields(i).dataType.catalogString}")
i += 1
if (i < len) stringConcat.append(",")
}
stringConcat.append(">")
stringConcat.toString
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]