-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-15256] [SQL] [PySpark] Clarify DataFrameReader.jdbc() docstring #13034
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
Conversation
python/pyspark/sql/readwriter.py
Outdated
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.
Single backticks in Sphinx just make things italic. e.g. See the current doc.
|
Test build #58278 has finished for PR 13034 at commit
|
|
Test build #58282 has finished for PR 13034 at commit
|
|
cc @davies |
python/pyspark/sql/readwriter.py
Outdated
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.
We are deprecating HiveContext in 2.0, should we change this to say "Hive support"?
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.
Sure, I'll change all occurrences of this within this file.
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.
Done.
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 you also update the doc tests?
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.
Sure, though I'm not sure what to update specifically. Could you elaborate?
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.
I meant the hiveContext in doc tests. If that is not easy, we could do that later.
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.
Ah OK, I'll take a look.
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 like that was taken care of in #13044.
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.
Oh nevermind, I think that person missed a few places...
|
Test build #58288 has finished for PR 13034 at commit
|
|
Test build #58371 has finished for PR 13034 at commit
|
|
@davies - I think this is ready for another review. I wasn't sure what doc tests you were referring to that needed to be updated, but all the tests are passing. |
|
@nchammas Could you add |
|
Test build #58403 has finished for PR 13034 at commit
|
|
Test build #58407 has finished for PR 13034 at commit
|
|
Test build #2985 has finished for PR 13034 at commit
|
|
Test build #58414 has finished for PR 13034 at commit
|
|
LGTM, |
This PR: * Corrects the documentation for the `properties` parameter, which is supposed to be a dictionary and not a list. * Generally clarifies the Python docstring for DataFrameReader.jdbc() by pulling from the [Scala docstrings](https://github.com/apache/spark/blob/b28137764716f56fa1a923c4278624a56364a505/sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala#L201-L251) and rephrasing things. * Corrects minor Sphinx typos. Author: Nicholas Chammas <[email protected]> Closes #13034 from nchammas/SPARK-15256. (cherry picked from commit b9cf617) Signed-off-by: Davies Liu <[email protected]>
|
Thanks for reviewing @davies! |
|
Test build #58401 has finished for PR 13034 at commit
|
This PR:
propertiesparameter, which is supposed to be a dictionary and not a list.