Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/20545#discussion_r167762799
--- Diff:
sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala ---
@@ -104,6 +104,13 @@ case class StructType(fields: Array[StructField])
extends DataType with Seq[Stru
/** Returns all field names in an array. */
def fieldNames: Array[String] = fields.map(_.name)
+ /**
+ * Returns all field names in an array. This is an alias of `fieldNames`.
+ *
+ * @since 2.3.0
--- End diff --
This is too late to be merged to 2.3.0. Please change it to 2.4.0.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]