Skip to content

Commit

Permalink
[SPARK-20090][FOLLOW-UP] Revert the deprecation of names in PySpark
Browse files Browse the repository at this point in the history
## 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 <[email protected]>

Closes #20595 from gatorsmile/removeDeprecate.
  • Loading branch information
gatorsmile authored and HyukjinKwon committed Feb 13, 2018
1 parent f17b936 commit 407f672
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 407f672

Please sign in to comment.