aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/sql/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/pyspark/sql/types.py')
-rw-r--r--python/pyspark/sql/types.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/pyspark/sql/types.py b/python/pyspark/sql/types.py
index eea80684e2..1ca4bbc379 100644
--- a/python/pyspark/sql/types.py
+++ b/python/pyspark/sql/types.py
@@ -786,9 +786,10 @@ def _parse_struct_fields_string(s):
def _parse_datatype_string(s):
"""
Parses the given data type string to a :class:`DataType`. The data type string format equals
- to `DataType.simpleString`, except that top level struct type can omit the `struct<>` and
- atomic types use `typeName()` as their format, e.g. use `byte` instead of `tinyint` for
- ByteType. We can also use `int` as a short name for IntegerType.
+ to :class:`DataType.simpleString`, except that top level struct type can omit
+ the ``struct<>`` and atomic types use ``typeName()`` as their format, e.g. use ``byte`` instead
+ of ``tinyint`` for :class:`ByteType`. We can also use ``int`` as a short name
+ for :class:`IntegerType`.
>>> _parse_datatype_string("int ")
IntegerType