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-7156][SQL] Addressed follow up comments for randomSplit #5795

Closed
wants to merge 2 commits into from

Conversation

brkyvz
Copy link
Contributor

@brkyvz brkyvz commented Apr 29, 2015

small fixes regarding comments in PR #5761

cc @rxin

@rxin
Copy link
Contributor

rxin commented Apr 29, 2015

LGTM.

@@ -445,7 +449,8 @@ def randomSplit(self, weights, seed=None):
3
"""
for w in weights:
assert w >= 0.0, "Negative weight value: %s" % w
if w < 0.0:
raise ValueError("Weights must be positive. Found weight value: %s" % w)
Copy link
Contributor

Choose a reason for hiding this comment

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

does %s work for numeric value?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh i checked on command line and it worked.

@SparkQA
Copy link

SparkQA commented Apr 30, 2015

Test build #31354 has finished for PR 5795 at commit 369c522.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • case class Sample(
    • case class Sample(
  • This patch does not change any dependencies.

@rxin
Copy link
Contributor

rxin commented Apr 30, 2015

Thanks. Merging in master.

@asfgit asfgit closed this in 5553198 Apr 30, 2015
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
small fixes regarding comments in PR apache#5761

cc rxin

Author: Burak Yavuz <brkyvz@gmail.com>

Closes apache#5795 from brkyvz/split-followup and squashes the following commits:

369c522 [Burak Yavuz] changed wording a little
1ea456f [Burak Yavuz] Addressed follow up comments
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
small fixes regarding comments in PR apache#5761

cc rxin

Author: Burak Yavuz <brkyvz@gmail.com>

Closes apache#5795 from brkyvz/split-followup and squashes the following commits:

369c522 [Burak Yavuz] changed wording a little
1ea456f [Burak Yavuz] Addressed follow up comments
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
small fixes regarding comments in PR apache#5761

cc rxin

Author: Burak Yavuz <brkyvz@gmail.com>

Closes apache#5795 from brkyvz/split-followup and squashes the following commits:

369c522 [Burak Yavuz] changed wording a little
1ea456f [Burak Yavuz] Addressed follow up comments
@brkyvz brkyvz deleted the split-followup branch February 3, 2019 20:55
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