Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengruifeng committed Jul 14, 2022
1 parent b62921f commit 4dce80b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/pyspark/sql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,10 @@ def _parse_datatype_json_string(json_string: str) -> DataType:
... python_datatype = _parse_datatype_json_string(scala_datatype.json())
... assert datatype == python_datatype
>>> for cls in _all_atomic_types.values():
... check_datatype(cls())
... if cls is not VarcharType:
... check_datatype(cls())
... else:
... check_datatype(cls(1))
>>> # Simple ArrayType.
>>> simple_arraytype = ArrayType(StringType(), True)
Expand Down

0 comments on commit 4dce80b

Please sign in to comment.