Skip to content

Commit a451901

Browse files
committed
improving error message
1 parent a18436d commit a451901

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/pyspark/sql/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ def fromInternal(self, obj):
440440

441441
def typeName(self):
442442
raise TypeError(
443-
"StructField does not have typename. \
444-
You can use self.dataType.simpleString() instead.")
443+
"StructField does not have typeName."
444+
"Use typeName on its type explicitly instead.")
445445

446446

447447
class StructType(DataType):

0 commit comments

Comments
 (0)