Skip to content
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-13019][Docs] fix for scala-2.10 build: Replace example code in mllib-statistics.md using include_example #11901

Closed
wants to merge 28 commits into from

Conversation

keypointt
Copy link
Contributor

What changes were proposed in this pull request?

This PR for ticket SPARK-13019 is based on previous PR(#11108).
Since PR(#11108) is breaking scala-2.10 build, more work is needed to fix build errors.

What I did new in this PR is adding keyword argument for 'fractions':
val approxSample = data.sampleByKey(withReplacement = false, fractions = fractions)
val exactSample = data.sampleByKeyExact(withReplacement = false, fractions = fractions)

I reopened ticket on JIRA but sorry I don't know how to reopen a GitHub pull request, so I just submitting a new pull request.

How was this patch tested?

Manual build testing on local machine, build based on scala-2.10.

@mengxr
Copy link
Contributor

mengxr commented Mar 23, 2016

add to whitelist

@mengxr
Copy link
Contributor

mengxr commented Mar 23, 2016

ok to test

@mengxr
Copy link
Contributor

mengxr commented Mar 23, 2016

LGTM pending Jenkins

@SparkQA
Copy link

SparkQA commented Mar 23, 2016

Test build #53939 has finished for PR 11901 at commit ceebd36.

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

@srowen
Copy link
Member

srowen commented Mar 24, 2016

Merged to master

@asfgit asfgit closed this in dd9ca7b Mar 24, 2016
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.

4 participants