-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-31748][PYTHON] Document resource module in PySpark doc and rename/move classes #28569
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
[SPARK-31748][PYTHON] Document resource module in PySpark doc and rename/move classes #28569
Conversation
|
cc @holdenk too - seems I can't add you as a reviewer. |
| :param name: the name of the resource | ||
| :param addresses: an array of strings describing the addresses of the resource | ||
|
|
||
| .. versionadded:: 3.0.0 |
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.
Will open a PR to backport for this change specifically for branch-3.0. This PR itself should go to master only.
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.
Please make a PR to branch-3.0 for this part.
This comment has been minimized.
This comment has been minimized.
|
Test build #122798 has finished for PR 28569 at commit
|
BryanCutler
left a comment
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.
+1 on the new module layout and the doc changes LGTM
viirya
left a comment
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.
Looks good too. It looks clearer.
|
Test build #122824 has finished for PR 28569 at commit
|
|
retest this please |
|
Test build #122825 has finished for PR 28569 at commit
|
dongjoon-hyun
left a comment
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.
+1, LGTM. Merged to master. Thank you.
|
Thank you all! |
…d rename/move classes ### What changes were proposed in this pull request? This PR partially backports #28569. 1.. Rename ``` pyspark └── resourceinformation.py └── class ResourceInformation ``` to ``` pyspark └── resource.py └── class ResourceInformation ``` So, the `ResourceInformation` is consistently imported via `pyspark.resource.ResourceInformation`. 2.. Document the new `pyspark.resource` module 3.. Minor docstring fix e.g.: ```diff - param name the name of the resource - param addresses an array of strings describing the addresses of the resource + :param name: the name of the resource + :param addresses: an array of strings describing the addresses of the resource + + .. versionadded:: 3.0.0 ``` ### Why are the changes needed? To document APIs, and move Python modules to fewer and simpler modules. ### Does this PR introduce _any_ user-facing change? No, the changes are in unreleased branches. ### How was this patch tested? Manually tested via: ```bash cd python ./run-tests --python-executables=python3 --modules=pyspark-core ``` Closes #28586 from HyukjinKwon/SPARK-31748. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
What changes were proposed in this pull request?
This PR is kind of a followup for SPARK-29641 and SPARK-28234. This PR proposes:
1.. Document the new
pyspark.resourcemodule introduced at 95aec09, in PySpark API docs.2.. Move classes into fewer and simpler modules
Before:
After:
3.. Minor docstring fix e.g.:
Why are the changes needed?
To document APIs, and move Python modules to fewer and simpler modules.
Does this PR introduce any user-facing change?
No, the changes are in unreleased branches.
How was this patch tested?
Manually tested via:
cd python ./run-tests --python-executables=python3 --modules=pyspark-core ./run-tests --python-executables=python3 --modules=pyspark-resource