Skip to content

Conversation

@felixcheung
Copy link
Member

@felixcheung felixcheung commented May 10, 2017

What changes were proposed in this pull request?

It turns out pyspark doctest is calling saveAsTable without ever dropping them. Since we have separate python tests for bucketed table, and there is no checking of results, there is really no need to run the doctest, other than leaving it as an example in the generated doc

How was this patch tested?

Jenkins

@SparkQA
Copy link

SparkQA commented May 10, 2017

Test build #76730 has started for PR 17932 at commit 8890b60.

@felixcheung
Copy link
Member Author

Jenkins, retest this please

:py:meth:`DataFrameWriter.saveAsTable`.
>>> (df.write.format('parquet')
>>> (df.write.format('parquet') # doctest: +SKIP
Copy link
Member

Choose a reason for hiding this comment

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

Glad to know it. : ) For multi-line commands, we just need to do it in the first line?

Copy link
Member Author

Choose a reason for hiding this comment

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

only the line with >>>

Copy link
Member

Choose a reason for hiding this comment

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

Thanks!

@SparkQA
Copy link

SparkQA commented May 10, 2017

Test build #76736 has finished for PR 17932 at commit 8890b60.

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

@HyukjinKwon
Copy link
Member

LGTM as targeted.

@gatorsmile
Copy link
Member

LGTM

@gatorsmile
Copy link
Member

Thanks! Merging to master.

@asfgit asfgit closed this in af8b6cc May 10, 2017
@SparkQA
Copy link

SparkQA commented May 10, 2017

Test build #76753 has finished for PR 17932 at commit a5b73ae.

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

@zero323
Copy link
Member

zero323 commented May 12, 2017

I see I am the one to blame here. Sorry for that @felixcheung

@gatorsmile
Copy link
Member

@zero323 That is fine. I should find the issue when I reviewed it.

lycplus pushed a commit to lycplus/spark that referenced this pull request May 24, 2017
## What changes were proposed in this pull request?

It turns out pyspark doctest is calling saveAsTable without ever dropping them. Since we have separate python tests for bucketed table, and there is no checking of results, there is really no need to run the doctest, other than leaving it as an example in the generated doc

## How was this patch tested?

Jenkins

Author: Felix Cheung <[email protected]>

Closes apache#17932 from felixcheung/pytablecleanup.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants