-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Conversation
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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Test build #31354 has finished for PR 5795 at commit
|
Thanks. Merging in master. |
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
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
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
small fixes regarding comments in PR #5761
cc @rxin