Repository: spark Updated Branches: refs/heads/branch-2.3 43f5e4067 -> 3737c3d32
[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. (cherry picked from commit 407f67249639709c40c46917700ed6dd736daa7d) Signed-off-by: hyukjinkwon <gurwls...@gmail.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/3737c3d3 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/3737c3d3 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/3737c3d3 Branch: refs/heads/branch-2.3 Commit: 3737c3d32bb92e73cadaf3b1b9759d9be00b288d Parents: 43f5e40 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:33 2018 +0900 ---------------------------------------------------------------------- python/pyspark/sql/types.py | 3 --- 1 file changed, 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/3737c3d3/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