Repository: spark Updated Branches: refs/heads/master f17b936f0 -> 407f67249
[SPARK-20090][FOLLOW-UP] Revert the deprecation of `names` in PySpark ## What changes were proposed in this pull request? Deprecating the field `name` in PySpark is not expected. This PR is to revert the change. ## How was this patch tested? N/A Author: gatorsmile <gatorsm...@gmail.com> Closes #20595 from gatorsmile/removeDeprecate. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/407f6724 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/407f6724 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/407f6724 Branch: refs/heads/master Commit: 407f67249639709c40c46917700ed6dd736daa7d Parents: f17b936 Author: gatorsmile <gatorsm...@gmail.com> Authored: Tue Feb 13 15:05:13 2018 +0900 Committer: hyukjinkwon <gurwls...@gmail.com> Committed: Tue Feb 13 15:05:13 2018 +0900 ---------------------------------------------------------------------- python/pyspark/sql/types.py | 3 --- 1 file changed, 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/407f6724/python/pyspark/sql/types.py ---------------------------------------------------------------------- diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py index e25941c..cd85740 100644 --- a/python/pyspark/sql/types.py +++ b/python/pyspark/sql/types.py @@ -455,9 +455,6 @@ class StructType(DataType): Iterating a :class:`StructType` will iterate its :class:`StructField`\\s. A contained :class:`StructField` can be accessed by name or position. - .. note:: `names` attribute is deprecated in 2.3. Use `fieldNames` method instead - to get a list of field names. - >>> struct1 = StructType([StructField("f1", StringType(), True)]) >>> struct1["f1"] StructField(f1,StringType,true) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org