Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Nov 9, 2020
1 parent 3b9cfdb commit ef83222
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions databricks/koalas/spark/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ def as_nullable_spark_type(dt: DataType) -> DataType:
>>> as_nullable_spark_type(StructType([
... StructField("A",
... StructType([
... StructField('a', MapType(IntegerType(), ArrayType(IntegerType(), False), False), False),
... StructField('a',
... MapType(IntegerType(),
... ArrayType(IntegerType(), False), False), False),
... StructField('b', StringType(), True)])),
... StructField("B", FloatType(), False)])) # doctest: +NORMALIZE_WHITESPACE
StructType(List(StructField(A,StructType(List(StructField(a,MapType(IntegerType,ArrayType\
(IntegerType,true),true),true),StructField(b,StringType,true))),true),StructField(B,FloatType,true)))
(IntegerType,true),true),true),StructField(b,StringType,true))),true),\
StructField(B,FloatType,true)))
"""
if isinstance(dt, StructType):
new_fields = []
Expand Down

0 comments on commit ef83222

Please sign in to comment.