-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-3964] [MLlib] [PySpark] add Hypothesis test Python API #3091
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 2 commits
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 |
|---|---|---|
|
|
@@ -98,8 +98,13 @@ def _java2py(sc, r): | |
| jrdd = sc._jvm.SerDe.javaToPython(r) | ||
| return RDD(jrdd, sc, AutoBatchedSerializer(PickleSerializer())) | ||
|
|
||
| elif isinstance(r, (JavaArray, JavaList)) or clsName in _picklable_classes: | ||
| if clsName in _picklable_classes: | ||
| r = sc._jvm.SerDe.dumps(r) | ||
| elif isinstance(r, (JavaArray, JavaList)): | ||
| try: | ||
| r = sc._jvm.SerDe.dumps(r) | ||
| except Py4JJavaError: | ||
| pass # not pickable | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The caller will handle it. The JavaArray/JavaList is iterable in Python, caller can access the internal objects in this array/list. |
||
|
|
||
| if isinstance(r, bytearray): | ||
| r = PickleSerializer().loads(str(r)) | ||
|
|
||
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.
remove
@paramand@return