Skip to content

[MINOR][PYSPARK][DOCS] Fix typo in example documentation #26299

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

Closed
wants to merge 25 commits into from
Closed

[MINOR][PYSPARK][DOCS] Fix typo in example documentation #26299

wants to merge 25 commits into from

Conversation

mstill3
Copy link
Contributor

@mstill3 mstill3 commented Oct 29, 2019

What changes were proposed in this pull request?

I propose that we change the example code documentation to call the proper function .
For example, under the foreachBatch function, the example code was calling the foreach() function by mistake.

Why are the changes needed?

I suppose it could confuse some people, and it is a typo

Does this PR introduce any user-facing change?

No, there is no "meaningful" code being change, simply the documentation

How was this patch tested?

I made the change on a fork and it still worked

Under the `foreachBatch` function, the example code was calling the `foreach()` function by mistake
@HyukjinKwon
Copy link
Member

ok to test

@HyukjinKwon
Copy link
Member

Can you check if there are some more typos while we're here? I am sure there are more.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112873 has finished for PR 26299 at commit bd10f25.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Fixed minor documentation issues with grammar
Fixed slight documentation typo with cube function
Changed temp to temporary in documentation to conform with the rest of the documentation
@vegerot
Copy link

vegerot commented Oct 30, 2019

@HyukjinKwon He's just fixing some errors he's come across while going through the documentation. It would probably be best to take these fixes as they are now and to file more PRs later if he comes across them.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112931 has finished for PR 26299 at commit f7d77e7.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Change all default True and False values to consistent ``True`` or ``False``
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112934 has finished for PR 26299 at commit 64cabce.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

The save method in this class did not have a proper example using the save function
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112936 has finished for PR 26299 at commit bc61744.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@srowen srowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep several good catches in there

Make the use of the word DataFrame consistent across documentation
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112938 has finished for PR 26299 at commit c283d4f.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112940 has finished for PR 26299 at commit 85dfe22.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Some of the lines were > 100
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112953 has finished for PR 26299 at commit b37f765.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112957 has finished for PR 26299 at commit 9bbd649.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112958 has finished for PR 26299 at commit 81d0855.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@dongjoon-hyun dongjoon-hyun changed the title Fix typo in example documentation [MINOR][DOCS] Fix typo in example documentation Oct 30, 2019
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112969 has finished for PR 26299 at commit 43b6f2b.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112970 has finished for PR 26299 at commit 4eb3537.

  • This patch fails Python style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

<= 100 characters per line
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112971 has finished for PR 26299 at commit cef3f12.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The UT failure seems to be the last blocker for this PR. Could you fix that in this PR?

update save() example code to match the DF columns
@SparkQA
Copy link

SparkQA commented Oct 30, 2019

Test build #112973 has finished for PR 26299 at commit 0207d87.

  • This patch fails PySpark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@mstill3 mstill3 requested a review from dongjoon-hyun October 30, 2019 23:56
Changed save mode to overwrite in save() documentation example
@SparkQA
Copy link

SparkQA commented Oct 31, 2019

Test build #113045 has finished for PR 26299 at commit 0d5fc4d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@mstill3 mstill3 requested a review from dongjoon-hyun October 31, 2019 22:13
Copy link
Member

@HyukjinKwon HyukjinKwon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM otherwise.

@dongjoon-hyun
Copy link
Member

@mstill3 . Please update the PR to use os.path.join(tempfile.mkdtemp(), 'data' according to @HyukjinKwon 's advice.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for the others.

Update save() documentation example to create the file in the temp directory instead of in the root
@SparkQA
Copy link

SparkQA commented Nov 1, 2019

Test build #113099 has finished for PR 26299 at commit 4e909e2.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you again for your first contribution, @mstill3 .
Thank you, @srowen, @HyukjinKwon , and @vegerot
Merged to master.

@dongjoon-hyun
Copy link
Member

@mstill3 . Since this is useful for users, could you make a PR for branch-2.4 too?

@mstill3 mstill3 deleted the patch-1 branch November 1, 2019 19:04
@mstill3 mstill3 restored the patch-1 branch November 1, 2019 19:04
@mstill3 mstill3 deleted the patch-1 branch November 1, 2019 19:04
@mstill3 mstill3 restored the patch-1 branch November 1, 2019 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants