Skip to content

[SPARK-16875][SQL] Add args checking for DataSet randomSplit and sample #14478

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 3 commits into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Add the missing args-checking for randomSplit and sample

How was this patch tested?

unit tests

@srowen
Copy link
Member

srowen commented Aug 3, 2016

LGTM. I wonder if we should even disallow a 0% sample, but, OK as-is.

@SparkQA
Copy link

SparkQA commented Aug 3, 2016

Test build #63168 has finished for PR 14478 at commit 3ea8518.

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

@srowen
Copy link
Member

srowen commented Aug 3, 2016

Ah, let's do this for the RDD API too eh?

@zhengruifeng
Copy link
Contributor Author

@srowen Right. I just add those checking for RDD.

@SparkQA
Copy link

SparkQA commented Aug 4, 2016

Test build #63210 has finished for PR 14478 at commit 4b0efea.

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

@srowen
Copy link
Member

srowen commented Aug 4, 2016

Merged to master / 2.0

asfgit pushed a commit that referenced this pull request Aug 4, 2016
## What changes were proposed in this pull request?

Add the missing args-checking for randomSplit and sample

## How was this patch tested?
unit tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes #14478 from zhengruifeng/fix_randomSplit.

(cherry picked from commit be8ea4b)
Signed-off-by: Sean Owen <sowen@cloudera.com>
@asfgit asfgit closed this in be8ea4b Aug 4, 2016
@zhengruifeng zhengruifeng deleted the fix_randomSplit branch August 5, 2016 01:24
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.

3 participants