Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/17435#discussion_r137685731
--- Diff: python/pyspark/sql/types.py ---
@@ -438,6 +438,11 @@ def toInternal(self, obj):
def fromInternal(self, obj):
return self.dataType.fromInternal(obj)
+ def typeName(self):
+ raise TypeError(
+ "StructField does not have typename. \
--- End diff --
Little nit: looks a typo, typename -> typeName.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]