-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20098][PYSPARK] dataType's typeName fix #17435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
00994e9
933f3cb
0a18192
6bf11f0
8872e19
a18436d
a451901
98bac12
28f142c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. \ | ||
|
||
| You can use self.dataType.simpleString() instead.") | ||
|
||
|
|
||
|
|
||
| class StructType(DataType): | ||
| """Struct type, consisting of a list of :class:`StructField`. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we do like ...
if it doesn't bother you much?